|
From: Thierry P. <thi...@gm...> - 2011-02-08 07:37:22
|
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 |