adaptivedemux: retry download MAX_DOWNLOAD_RETRY_COUNT times before erroring
authorMatthew Waters <matthew@centricular.com>
Fri, 2 Dec 2016 06:51:57 +0000 (17:51 +1100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 25 May 2017 10:33:35 +0000 (13:33 +0300)
commit430a90df20881dcfb3b1d84e60f5e49549d11490
treefbbebd1fd2717fedac3dd93a3a9fa4489909f1b7
parentbe08f0f9a84a7a99ef9b1572c8ca2e879ebbcb27
adaptivedemux: retry download MAX_DOWNLOAD_RETRY_COUNT times before erroring

What we want is to retry downloading the fragment on 4xx/5xx errors
however returning EOS will cause waiting for a manifest update for live
(which may be a really long time) or stop everything for non-live.

Change that to only return EOS/ERROR once we've reached the error limit.

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