adaptivedemux: allow seeking before start in live streams
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Mar 2016 17:04:33 +0000 (17:04 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 2 Aug 2016 11:52:34 +0000 (12:52 +0100)
commit5b7f60dada60ce1b8dfcddc25012a906357e92e3
treec1daf0fb78c2a55dc1ce3fe71055c30abaae3947
parent87a86b78b525c5ebf0e2d856e42718e170399a7d
adaptivedemux: allow seeking before start in live streams

Some derived classes (at least dashdemux) expose a seeking range
based on wall clock. This means that a subsequent seek to the start
of this range will be before the allowed range.

To solve this, seeks without the ACCURATE flag are allowed to seek
before the start for live streams, in which case the segment is
shifted to start at the start of the new seek range. If there is
an end position, is is shifted too, to keep the duration constant.

https://bugzilla.gnome.org/show_bug.cgi?id=753751
gst-libs/gst/adaptivedemux/gstadaptivedemux.c