hlsdemux: correct the calculation of seek range of non-live streams
authorAlex Ashley <bugzilla@ashley-family.net>
Tue, 10 Nov 2015 16:19:34 +0000 (16:19 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 2 Dec 2015 08:16:25 +0000 (10:16 +0200)
commit0745d567a7959e01b4308c0971134d5c3d272c39
treea136a4e2761bc985f07e03acfdf3baf6b51fb53d
parentce67e8934de20d6d7b9814cb36b2a12c545339fe
hlsdemux: correct the calculation of seek range of non-live streams

The seek range calculation for on-demand streams was incorrectly
excluding the last three segments of the stream. This three segment
rule should only be applied to live streams [1].

[1] https://tools.ietf.org/html/draft-pantos-http-live-streaming-17#section-6.3.3

https://bugzilla.gnome.org/show_bug.cgi?id=758386
ext/hls/m3u8.c
tests/check/elements/hlsdemux_m3u8.c