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><div>Ivan</div><div><br></div>