From 3e541953f89824c69ed79a73e640b98ab6aebec7 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: --- subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c index 6e45c34..1703456 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c @@ -1857,7 +1857,6 @@ download_media_playlist (GstHLSDemux * demux, gchar * uri, GError ** err, GstHLSMediaPlaylist * current) { GstAdaptiveDemux *adaptive_demux; - const gchar *main_uri; DownloadRequest *download; GstBuffer *buf; gchar *playlist_data; @@ -1866,7 +1865,6 @@ download_media_playlist (GstHLSDemux * demux, gchar * uri, GError ** err, gboolean playlist_uri_change = FALSE; adaptive_demux = GST_ADAPTIVE_DEMUX (demux); - main_uri = gst_adaptive_demux_get_manifest_ref_uri (adaptive_demux); /* If there's no previous playlist, or the URI changed this * is not a refresh/update but a switch to a new playlist */ @@ -1878,7 +1876,7 @@ download_media_playlist (GstHLSDemux * demux, gchar * uri, GError ** err, download = downloadhelper_fetch_uri (adaptive_demux->download_helper, - uri, main_uri, DOWNLOAD_FLAG_COMPRESS | DOWNLOAD_FLAG_FORCE_REFRESH, err); + uri, NULL, DOWNLOAD_FLAG_COMPRESS | DOWNLOAD_FLAG_FORCE_REFRESH, err); if (download == NULL) return NULL; -- 2.7.4