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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3972>
This commit is contained in:
Edward Hervey 2023-02-15 17:32:39 +01:00 committed by GStreamer Marge Bot
parent 3bbfab1cf3
commit bead28ad5c

View file

@ -675,8 +675,6 @@ start_playlist_download (GstHLSDemuxPlaylistLoader * pl,
GstHLSDemuxPlaylistLoaderPrivate * priv) GstHLSDemuxPlaylistLoaderPrivate * priv)
{ {
gboolean allow_skip = !priv->delta_merge_failed; gboolean allow_skip = !priv->delta_merge_failed;
const gchar *base_uri = priv->base_uri;
const gchar *orig_uri = priv->target_playlist_uri; const gchar *orig_uri = priv->target_playlist_uri;
/* Can't download yet */ /* Can't download yet */
@ -765,7 +763,7 @@ start_playlist_download (GstHLSDemuxPlaylistLoader * pl,
priv->state = PLAYLIST_LOADER_STATE_LOADING; priv->state = PLAYLIST_LOADER_STATE_LOADING;
if (!downloadhelper_submit_request (priv->download_helper, 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)) { priv->download_request, NULL)) {
/* Failed to submit the download - could be invalid URI, but /* Failed to submit the download - could be invalid URI, but
* could just mean the download helper was stopped */ * could just mean the download helper was stopped */