[gst-devel] Timeout in rtspsrc

Thierry Panthier thierry.devel at gmail.com
Tue Feb 8 08:37:16 CET 2011


Hi,

I'm using rtspsrc to request video from an IP camera.

Everything works fine in normal conditions however if I unplug the network
cable from the camera my pipeline takes several minutes to timeout.

This is the error message I get minutes later:

*   code = 7*
*domain = gst-resource-error-quark*
*    error = Could not open resource for reading and writing.*
*  debug = gstrtspsrc.c(3839): gst_rtspsrc_loop_udp ():
/GstPipeline:RTSPPlayer/GstRTSPSrc:rtspsrc9:*
*
*
*Could not connect to server. (System error: Connection refused)*

I've gone through the documentation of rtspsrc but there's no way to specify
a timeout for RTP packets. Could someone tell me the best way to detect the
absence of data in the pipeline? It doesn't necessarily have to be on
rtspsrc. I just need a way to quickly detect that the pipeline is not
handling any data.

Regards,

Thierry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110208/724af0f6/attachment.htm>


More information about the gstreamer-devel mailing list