[gst-devel] Reconnecting to a rtsp stream after EOS

Nathanael D. Noblet nathanael at gnat.ca
Thu Jan 27 17:50:03 CET 2011


On 01/27/2011 07:28 AM, Andreas Lubensky wrote:
> Hello,
>
> I am using an uridecobin to decode all kinds of videos, including rtsp
> streams.
> Usually I want videos to loop seamlessly, so I seek the video with
> GST_SEEK_FLAG_SEGMANT to get a GST_MESSAGE_SEGMENT_DONE
> and seek back to the beginning.
> I use vlc to broadcast the rtsp stream and there looping basically means that
> the stream is closed and restarted again. That gives me a
> GST_MESSAGE_EOS. Unfortunately just seeking to the beginning or setting
> the pipeline state to GST_STATE_NULL and GST_STATE_PLAYING to
> reconnect the stream has no effect.

Don't set state to NULL, AFAIK that removes all settings (like the uri 
etc). Have you tried setting it to READY and then PLAYING?




More information about the gstreamer-devel mailing list