Error not be thrown

Tim-Philipp Müller t.i.m at zen.co.uk
Tue May 14 02:34:48 PDT 2013


On Tue, 2013-05-14 at 17:24 +0800, Mohamed Salim Mohamed Ayub wrote:
> I use         gst_bus_add_signal_watch_full(bus, G_PRIORITY_HIGH)
> 
> and I create glib main loop via 
> loop=g_main_loop_new(NULL, FALSE)
> 
>  and g_main_loop_run(loop)

Then I don't know.

Maybe check the GST_DEBUG log to see if the message is posted at all:

GST_DEBUG=GST_BUS:6,*:3

Cheers
 -Tim

> 
> 
> 
> 
> 
> On Tue, May 14, 2013 at 4:57 PM, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
>         On Tue, 2013-05-14 at 15:41 +0800, Mohamed Salim Mohamed Ayub
>         wrote:
>         
>         
>         > In my application I try to catch the error,by
>         >     g_signal_connect (strBus, "message::error", (GCallback)
>         > error_received, Pipeline);
>         >
>         >
>         > IN error_received, I check for Error->domain to be
>         GST_STREAM_ERROR
>         > and then check for STATUS_ERROR_MEDIA_FORMAT to stop
>         playback.
>         >
>         > However, even though plug-in executes  GST_ELEMENT_ERROR, my
>         erro
>         > handling never enters error_received.
>         >
>         >
>         > Any hint what might be going wrong?
>         
>         
>         The "message" signal on GstBus will only be emitted if
>         
>         a) you called gst_bus_add_signal_watch()
>         
>         b) you're running a GLib/Gtk main loop, or iterating
>            the default main context in some other way.
>         
>         Cheers
>          -Tim
>         
>         
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list