Detecting Network Failure on RtpSrc (RtpBin)
Paddy
pat.blanchon at gmail.com
Tue Jan 29 01:31:39 PST 2013
I've just posted a solution for catching stream timeout here
<http://gstreamer-devel.966125.n4.nabble.com/RTSP-rtspsrc-how-to-catch-stream-timeout-td4658172.html>
.
I also had some code in the pipeline error handler to catch the initial
condition of no connection:
gst_message_parse_error(message, &error, &dbg);
if (g_str_has_prefix(GST_OBJECT_NAME(message->src), "rtspsrc"))
{
// RTSPSRC has generated an error
switch (error->code)
{
case GST_RESOURCE_ERROR_OPEN_READ:
case GST_RESOURCE_ERROR_OPEN_WRITE:
case GST_RESOURCE_ERROR_OPEN_READ_WRITE:
....
This copes with my problem that when one of my 2 rtspsrc's go offline the
entire pipeline stalls - I spoof out the camera feed with a videotestsrc &
inject that to keep the pipelines flowing.
THis works pretty well for me - it may help you.
What I haven't quite worked out is how to detect when the camera comes back
online
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Detecting-Network-Failure-on-RtpSrc-RtpBin-tp4542644p4658196.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list