[gst-devel] Discovering what element caused a warning?

Michael Smith msmith at xiph.org
Thu Jul 30 01:39:24 CEST 2009


On Wed, Jul 29, 2009 at 4:33 PM, Murray Cumming<murrayc at murrayc.com> wrote:
> My pipeline's bus is giving me a GST_MESSAGE_WARNING GtkMessage whose
> GError has:
>  domain: GST_STREAM_ERROR
>  code: GST_STREAM_ERROR_WRONG_TYPE (The stream is of a different type
> than handled by this element.)
>  message: "No decoder available for type 'audio/mpeg,
> mpegversion=(int)4, framed=(boolean)true, codec_data=(buffer)1188,
> rate=(int)48000, channels=(int)1'."
>
> I am fairly sure that the affected element is my uridecodebin, but my
> question is How can I generally discover at runtime what element(s) are
> involved in a particular bus warning or error?

The message is a GstMessage, not a GtkMessage. GstMessage::src points
at the source of the message; you can look at that to figure out what
sent it.

Mike




More information about the gstreamer-devel mailing list