mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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/5057>
This commit is contained in:
parent
46d5a64117
commit
3e541953f8
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue