From b106da299c0b056ebde28bebce2d61ce6fd2df2e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 5 Jan 2016 10:39:11 -0300 Subject: 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. --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 32b21f0b4..a8f4ea94d 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -2118,7 +2118,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; -- cgit v1.2.1