<div dir="ltr"><div><div>I use gst_bus_add_signal_watch_full(bus, G_PRIORITY_HIGH)<br></div>and I create glib main loop via <br>loop=g_main_loop_new(NULL, FALSE)<br></div><div> and g_main_loop_run(loop)<br><br><br>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 4:57 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 2013-05-14 at 15:41 +0800, Mohamed Salim Mohamed Ayub wrote:<br>
<br>
<br>
> In my application I try to catch the error,by<br>
> g_signal_connect (strBus, "message::error", (GCallback)<br>
> error_received, Pipeline);<br>
><br>
><br>
> IN error_received, I check for Error->domain to be GST_STREAM_ERROR<br>
> and then check for STATUS_ERROR_MEDIA_FORMAT to stop playback.<br>
><br>
> However, even though plug-in executes GST_ELEMENT_ERROR, my erro<br>
> handling never enters error_received.<br>
><br>
><br>
> Any hint what might be going wrong?<br>
<br>
</div>The "message" signal on GstBus will only be emitted if<br>
<br>
a) you called gst_bus_add_signal_watch()<br>
<br>
b) you're running a GLib/Gtk main loop, or iterating<br>
the default main context in some other way.<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>