rtspsrc: server closes the connection but pipelines got stuck
Submitted by Guillaume Desmottes
I have the following pipeline reading from a RTSP server:
gst-launch-1.0 rtspsrc location="..." protocols=0x00000004 ! decodebin name=demux ! queue ! videoconvert ! vp8enc ! webmmux name=mux ! filesink location=videos/webm/20121123-1_bb_pl.webm demux. ! queue ! audioconvert ! audioresample ! vorbisenc ! mux.
Most of the time it works fine and keep transcoding until the video is done. But sometimes for some reason (the server stopping to send?) the pipeline got stuck blocking my whole script.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(3776): gst_rtspsrc_loop_interleaved (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
The server closed the connection.
Shouldn't the element raise an error and so the pipeline can be terminated?