mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
adaptivedemux: Set DISCONT on startup, resume and after seeks
Initial buffers after STREAM_START and seeks should always have the DISCONT flag set. https://bugzilla.gnome.org/show_bug.cgi?id=766650
This commit is contained in:
parent
e3f5ccb333
commit
9296b26095
1 changed files with 4 additions and 1 deletions
|
@ -881,7 +881,7 @@ gst_adaptive_demux_expose_stream (GstAdaptiveDemux * demux,
|
|||
stream->pending_caps = NULL;
|
||||
}
|
||||
|
||||
stream->discont = FALSE;
|
||||
stream->discont = TRUE;
|
||||
|
||||
gst_object_ref (pad);
|
||||
|
||||
|
@ -1466,6 +1466,8 @@ gst_adaptive_demux_src_event (GstPad * pad, GstObject * parent,
|
|||
gst_event_set_seqnum (seg_evt, demux->priv->segment_seqnum);
|
||||
gst_event_replace (&stream->pending_segment, seg_evt);
|
||||
gst_event_unref (seg_evt);
|
||||
/* Make sure the first buffer after a seek has the discont flag */
|
||||
stream->discont = TRUE;
|
||||
}
|
||||
|
||||
GST_ADAPTIVE_DEMUX_SEGMENT_UNLOCK (demux);
|
||||
|
@ -2843,6 +2845,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
GST_PTR_FORMAT, seg_event);
|
||||
gst_pad_push_event (stream->pad, seg_event);
|
||||
|
||||
stream->discont = TRUE;
|
||||
stream->restart_download = FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue