mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +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)
|
GstHLSMediaPlaylist * current)
|
||||||
{
|
{
|
||||||
GstAdaptiveDemux *adaptive_demux;
|
GstAdaptiveDemux *adaptive_demux;
|
||||||
const gchar *main_uri;
|
|
||||||
DownloadRequest *download;
|
DownloadRequest *download;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
gchar *playlist_data;
|
gchar *playlist_data;
|
||||||
|
@ -1866,7 +1865,6 @@ download_media_playlist (GstHLSDemux * demux, gchar * uri, GError ** err,
|
||||||
gboolean playlist_uri_change = FALSE;
|
gboolean playlist_uri_change = FALSE;
|
||||||
|
|
||||||
adaptive_demux = GST_ADAPTIVE_DEMUX (demux);
|
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
|
/* If there's no previous playlist, or the URI changed this
|
||||||
* is not a refresh/update but a switch to a new playlist */
|
* 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 =
|
download =
|
||||||
downloadhelper_fetch_uri (adaptive_demux->download_helper,
|
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)
|
if (download == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue