I think you should be getting a error/warning message on bus, if the disconnection takes place.<br>So you should be handling this in your bus call back ?<br><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 5:38 PM, Ivan Zoli <span dir="ltr">&lt;<a href="mailto:ivan.z@tiscali.it">ivan.z@tiscali.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<div><br></div><div>I am streaming an h.264 video from an embedded system to PC.</div><div><br></div><div>The pipeline is something like (I miss some properties to be more concise):</div>
<div><br></div><div>gst-launch v4lsrc ! my_h264enc ! queue ! h264parse ! rtph264pay ! \</div>
<div>   udpsink port=5334 ip=192.168.20.1 ts-offset=0 sync=false async=true max-lateness=1000000000</div><div><br></div><div>The connection is made using an RNDIS driver (Ethernet over USB).</div><div>All if fine, but if the cable is disconnected before killing the pipeline,</div>

<div>I have a lock in executing</div><div><br></div><div>gst_element_set_state(my_pipe, GST_STATE_NULL);</div><div><br></div><div>I have no return from this function, unless I connect back USB cable.</div><div><br></div>
<div>
I&#39;d like to avoid this block, because I can recognize that user</div><div>has disconnect the USB cable so I&#39;d like to destroy the</div><div>pipeline, in a better way than kill the application.</div><div><br></div>

<div>Thank you</div><div><br></div><font color="#888888"><div>Ivan</div><div><br></div>
</font><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></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.linkedin.com/in/kapilagrawal" target="_blank">http://www.linkedin.com/in/kapilagrawal</a><br><a href="http://www.mediamagictechnologies.com" target="_blank">www.mediamagictechnologies.com</a> <br>
(Consultancy - Multimedia, Gstreamer, ffmpeg, Streaming for platforms- linux, windows, TI, android)<br><br><br>