adaptivedemux: Allow live seeking range to go back to "now"

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
This commit is contained in:
Edward Hervey 2017-05-05 18:22:18 +02:00 committed by Edward Hervey
parent b63fb59a11
commit 6772981668

View 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");