Commit f0185f4b authored by Matthew Waters's avatar Matthew Waters 🐨 Committed by Sebastian Dröge

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.
parent 63627a8c
......@@ -3317,7 +3317,7 @@ again:
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");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment