summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2016-01-05 10:39:11 -0300
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 13:46:11 +0100
commitb106da299c0b056ebde28bebce2d61ce6fd2df2e (patch)
tree1161c8ab1d6b678c132d0b4ae7462816359b47d2
parent19a4a9f9b0eb1bd67bf2e4fff5dedf2393490947 (diff)
downloadgstreamer-plugins-bad-b106da299c0b056ebde28bebce2d61ce6fd2df2e.tar.gz
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.
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c2
1 files changed, 1 insertions, 1 deletions
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;