summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-12-02 17:51:57 +1100
committerSebastian Dröge <sebastian@centricular.com>2017-05-29 10:50:03 +0300
commitf0185f4bd7182a5154657d5b2d64edb0f6315a9f (patch)
tree459fda14d0ce8a2ba8675c9bb2ee0569b934b159 /gst-libs
parent63627a8c715ef6a762d40f640a1d2afd864cbd11 (diff)
downloadgstreamer-plugins-bad-f0185f4bd7182a5154657d5b2d64edb0f6315a9f.tar.gz
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
index da755744d..cccb72aa9 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ -3317,7 +3317,7 @@ again:
}
flushing:
- if (++stream->download_error_count <= MAX_DOWNLOAD_ERROR_COUNT) {
+ if (stream->download_error_count >= MAX_DOWNLOAD_ERROR_COUNT) {
/* looks like there is no way of knowing when a live stream has ended
* Have to assume we are falling behind and cause a manifest reload */
GST_DEBUG_OBJECT (stream->pad, "Converting error of live stream to EOS");