mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
hlsdemux2: Improve detection of playlist updates
In the case we are not updating an existing playlist, we only want to reset the download error count if the URI we are downloading was not the previous one we were trying to load Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6410>
This commit is contained in:
parent
f8d8c6795d
commit
257de579b3
1 changed files with 3 additions and 1 deletions
|
@ -726,7 +726,9 @@ start_playlist_download (GstHLSDemuxPlaylistLoader * pl,
|
|||
} else {
|
||||
/* This is the first time loading this playlist URI, clear the error counter
|
||||
* and redirect URI */
|
||||
priv->download_error_count = 0;
|
||||
if (!priv->loading_playlist_uri
|
||||
|| g_strcmp0 (orig_uri, priv->loading_playlist_uri))
|
||||
priv->download_error_count = 0;
|
||||
g_free (priv->current_playlist_redirect_uri);
|
||||
priv->current_playlist_redirect_uri = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue