From bead28ad5c4d5ab7747776a20f070723db30efbf Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 15 Feb 2023 17:32:39 +0100 Subject: [PATCH] hlsdemux2: Don't set a referer when updating playlists In the same way we don't for regular playlists in the base class. If there is a referer specified by the app/user, the downloadhelper will set it accordingly. Part-of: --- .../ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c index 472ef44b4b..76efef5907 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-playlist-loader.c @@ -675,8 +675,6 @@ start_playlist_download (GstHLSDemuxPlaylistLoader * pl, GstHLSDemuxPlaylistLoaderPrivate * priv) { gboolean allow_skip = !priv->delta_merge_failed; - - const gchar *base_uri = priv->base_uri; const gchar *orig_uri = priv->target_playlist_uri; /* Can't download yet */ @@ -765,7 +763,7 @@ start_playlist_download (GstHLSDemuxPlaylistLoader * pl, priv->state = PLAYLIST_LOADER_STATE_LOADING; if (!downloadhelper_submit_request (priv->download_helper, - base_uri, DOWNLOAD_FLAG_COMPRESS | DOWNLOAD_FLAG_FORCE_REFRESH, + NULL, DOWNLOAD_FLAG_COMPRESS | DOWNLOAD_FLAG_FORCE_REFRESH, priv->download_request, NULL)) { /* Failed to submit the download - could be invalid URI, but * could just mean the download helper was stopped */