adaptivedemux: Actually wait for playlist update when requested
authorEdward Hervey <bilboed@bilboed.com>
Sat, 15 Aug 2015 17:01:00 +0000 (19:01 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 15 Aug 2015 17:04:42 +0000 (19:04 +0200)
commit69867f95e2dd53ba9542500db9efbc09f464c400
treeb4cb3b9839e428397f40ec73c84aa6f2327d9d35
parentc90f6b990b64049b9feb68c0eb34ec3acd15cee8
adaptivedemux: Actually wait for playlist update when requested

There are several cases where a HLS server could temporarily have wrong
fragments, or reconfigure the playlist. In those cases, when we get
fragment download failures, we *really* want to wait a bit (for the next
playlist update) before retrying to get fragments.

Previously this method was first checking to see if there was next fragments
(according to the previous manifest update) before waiting for the next update.
The problem was that if that if there is a temporary failure on the server,
that's uncorrelated to whether the manifest contains next fragments or not.
gst-libs/gst/adaptivedemux/gstadaptivedemux.c