Error not be thrown

Mohamed Salim Mohamed Ayub al.mohamed.salim at gmail.com
Tue May 14 02:24:56 PDT 2013


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)





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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130514/45072f7c/attachment.html>


More information about the gstreamer-devel mailing list