adaptivedemux2: Increment retry counter to stop after MAX_ERROR_COUNT

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8128>
This commit is contained in:
Thibault Saunier 2024-12-10 23:54:07 -03:00 committed by GStreamer Marge Bot
parent 1faa88b1ff
commit 99ad918ece

View file

@ -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");