hlsdemux2: Don't set a referer when updating playlists
authorEdward Hervey <edward@centricular.com>
Wed, 15 Feb 2023 16:32:39 +0000 (17:32 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Jul 2023 14:00:49 +0000 (16:00 +0200)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5057>

subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux.c

index 6e45c34..1703456 100644 (file)
@@ -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;