rtspsrc: mark discont on the streams as was said the debug line

After a seek mark all streams with discont as it was said in the debug line.
Fixes that buffers after a seek are generated without a valid timestamp.
This commit is contained in:
Josep Torra 2009-04-18 14:32:40 +02:00
parent ec2d6053a0
commit dfb375daa1

View file

@ -1386,6 +1386,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
gboolean update; gboolean update;
gboolean playing; gboolean playing;
GstSegment seeksegment = { 0, }; GstSegment seeksegment = { 0, };
GList *walk;
if (event) { if (event) {
GST_DEBUG_OBJECT (src, "doing seek with event"); GST_DEBUG_OBJECT (src, "doing seek with event");
@ -1509,6 +1510,10 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
/* mark discont */ /* mark discont */
GST_DEBUG_OBJECT (src, "mark DISCONT, we did a seek to another position"); GST_DEBUG_OBJECT (src, "mark DISCONT, we did a seek to another position");
for (walk = src->streams; walk; walk = g_list_next (walk)) {
GstRTSPStream *stream = (GstRTSPStream *) walk->data;
stream->discont = TRUE;
}
GST_RTSP_STREAM_UNLOCK (src); GST_RTSP_STREAM_UNLOCK (src);