adaptivedemux: Handle more live seeking use-cases
authorEdward Hervey <edward@centricular.com>
Mon, 8 May 2017 13:34:50 +0000 (15:34 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 9 May 2017 07:02:07 +0000 (09:02 +0200)
commitea6e58d27fabc6a5f671bae3e885896c4a3b8b50
treecc526b1da22b2f63e5caf3f5a3ecad2432ebcdea
parentdf60e122037a7eed9604a91c9bed5abe93d1e50c
adaptivedemux: Handle more live seeking use-cases

This commit fixes the following assumptions with live seeking:
1) start was always valid and of type GST_SEEK_TYPE_SET
2) direction was always forward
3) stop should be offsetted when handling non-accurate seeks before
   the range start position.

In order to handle more live seeking use-cases (including reverse playback),
only do non-accurate start/stop value clamping for GST_SEEK_TYPE_SET values.

Also add a bit more debugging lines for issues

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