mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
adaptivedemux: stop reverse playback when we reach the limit
Avoids downloading and pushing a full segment just to get 1 nanosecond of data. This happens frequently when seeking is done with flags that adjust to boundaries or when the start is aligned with segment starts. The later is common when segment durations is a multiple of a second.
This commit is contained in:
parent
bf57be7fc7
commit
f57109ad2e
1 changed files with 1 additions and 1 deletions
|
@ -2572,7 +2572,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
}
|
||||
} else {
|
||||
if (GST_CLOCK_TIME_IS_VALID (demux->segment.start)
|
||||
&& stream->segment.position < stream->segment.start) {
|
||||
&& stream->segment.position <= stream->segment.start) {
|
||||
ret = GST_FLOW_EOS;
|
||||
gst_task_stop (stream->download_task);
|
||||
goto end_of_manifest;
|
||||
|
|
Loading…
Reference in a new issue