adaptivedemux: Allow live seeking range to go back to "now"
authorEdward Hervey <edward@centricular.com>
Fri, 5 May 2017 16:22:18 +0000 (18:22 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 5 May 2017 16:28:33 +0000 (18:28 +0200)
The allowed live seek ranges returned by subclasses are "inclusive", that is
to say that the "range_stop" value they return is the highest acceptable position
one can seek to (i.e. "now").

Allow seeking to exactly that value

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index da75574..a5e517b 100644 (file)
@@ -1526,7 +1526,7 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux, GstPad * pad,
       }
     }
 
-    if (start < range_start || start >= range_stop) {
+    if (start < range_start || start > range_stop) {
       GST_MANIFEST_UNLOCK (demux);
       GST_API_UNLOCK (demux);
       GST_WARNING_OBJECT (demux, "Seek to invalid position");