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

ved kpl ved.kpl at gmail.com
Thu Jul 30 04:37:37 CEST 2009


GST_ELEMENT_NAME(GST_MESSAGE_SRC(msg)) will printout the name of the
element that has posted the message.

Vikram

On 7/30/09, Michael Smith <msmith at xiph.org> wrote:
> 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
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>




More information about the gstreamer-devel mailing list