<div dir="ltr"><div><div>I found that gst-launch works OK with the plug-in. Upon error, gst-launch terminates the playback, but not my application.<br></div>Could it be due to problem in notifying event from plug-in. <br>I checked the code of gst-launch, it seems, it uses polling to read all the errors from the bus, while my application is relying on error notification.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 5:34 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 17:24 +0800, Mohamed Salim Mohamed Ayub wrote:<br>
> I use         gst_bus_add_signal_watch_full(bus, G_PRIORITY_HIGH)<br>
><br>
> and I create glib main loop via<br>
> loop=g_main_loop_new(NULL, FALSE)<br>
><br>
>  and g_main_loop_run(loop)<br>
<br>
</div>Then I don't know.<br>
<br>
Maybe check the GST_DEBUG log to see if the message is posted at all:<br>
<br>
GST_DEBUG=GST_BUS:6,*:3<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
><br>
><br>
><br>
> On Tue, May 14, 2013 at 4:57 PM, Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>><br>
> wrote:<br>
>         On Tue, 2013-05-14 at 15:41 +0800, Mohamed Salim Mohamed Ayub<br>
>         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<br>
>         GST_STREAM_ERROR<br>
>         > and then check for STATUS_ERROR_MEDIA_FORMAT to stop<br>
>         playback.<br>
>         ><br>
>         > However, even though plug-in executes  GST_ELEMENT_ERROR, my<br>
>         erro<br>
>         > handling never enters error_received.<br>
>         ><br>
>         ><br>
>         > Any hint what might be going wrong?<br>
><br>
><br>
>         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>
><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>
<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>
</div></div></blockquote></div><br></div>