mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
hlsdemux: Set DISCONT flag on all buffers in reverse playback mode
This commit is contained in:
parent
8109ed8785
commit
e11a99e26a
1 changed files with 6 additions and 0 deletions
|
@ -880,6 +880,12 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
|
|||
GST_DEBUG_OBJECT (demux, "Pushing buffer %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
|
||||
|
||||
/* Set DISCONT flag for every buffer in reverse playback mode
|
||||
* as each fragment for its own has to be reversed */
|
||||
if (demux->segment.rate < 0) {
|
||||
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
|
||||
}
|
||||
|
||||
demux->segment.position = GST_BUFFER_TIMESTAMP (buf);
|
||||
ret = gst_pad_push (demux->srcpad, buf);
|
||||
if (ret != GST_FLOW_OK)
|
||||
|
|
Loading…
Reference in a new issue