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:
parent
1faa88b1ff
commit
99ad918ece
@ -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
|
/* 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 */
|
* Have to assume we are falling behind and cause a manifest reload */
|
||||||
GST_DEBUG_OBJECT (stream, "Converting error of live stream to EOS");
|
GST_DEBUG_OBJECT (stream, "Converting error of live stream to EOS");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user