adaptivedemux2: Fix for failed download handling

When playing at the live edge of a live playlist, and a download fails, we don't
expect there to be a next fragment. That case is handled lower down anyway, so
don't retry infinitely on spurious http errors at the live edge.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
Jan Schmidt 2022-12-31 00:33:51 +11:00 committed by GStreamer Marge Bot
parent ceda805abb
commit 52d577eee1

View file

@ -1209,9 +1209,6 @@ on_download_error (DownloadRequest * request, DownloadRequestState state,
|| last_status_code / 100 == 5)) {
/* 4xx/5xx */
/* if current position is before available start, switch to next */
if (!gst_adaptive_demux2_stream_has_next_fragment (stream))
goto flushing;
if (live) {
gint64 range_start, range_stop;