From 99ad918ece7f6caaa99753b93b675d3275adfa26 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 10 Dec 2024 23:54:07 -0300 Subject: [PATCH] adaptivedemux2: Increment retry counter to stop after MAX_ERROR_COUNT Part-of: --- .../ext/adaptivedemux2/gstadaptivedemux-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c index b66bf21c92..2aa23bb5c8 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c @@ -1255,7 +1255,7 @@ on_download_error (DownloadRequest * request, DownloadRequestState state, } } - 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, "Converting error of live stream to EOS");