mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
ec2d6053a0
commit
dfb375daa1
1 changed files with 5 additions and 0 deletions
|
@ -1386,6 +1386,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
|||
gboolean update;
|
||||
gboolean playing;
|
||||
GstSegment seeksegment = { 0, };
|
||||
GList *walk;
|
||||
|
||||
if (event) {
|
||||
GST_DEBUG_OBJECT (src, "doing seek with event");
|
||||
|
@ -1509,6 +1510,10 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
|||
|
||||
/* mark discont */
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue