Error not be thrown
Tim-Philipp Müller
t.i.m at zen.co.uk
Tue May 14 01:57:11 PDT 2013
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
More information about the gstreamer-devel
mailing list