mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
hlsdemux: Download playlists with compression, keys and fragments without
This commit is contained in:
parent
a11c6640bf
commit
8c3ef21a68
1 changed files with 4 additions and 3 deletions
|
@ -1101,7 +1101,7 @@ gst_hls_demux_update_playlist (GstHLSDemux * demux, gboolean update,
|
||||||
|
|
||||||
const gchar *uri = gst_m3u8_client_get_current_uri (demux->client);
|
const gchar *uri = gst_m3u8_client_get_current_uri (demux->client);
|
||||||
|
|
||||||
download = gst_uri_downloader_fetch_uri (demux->downloader, uri, err);
|
download = gst_uri_downloader_fetch_uri (demux->downloader, uri, TRUE, err);
|
||||||
if (download == NULL)
|
if (download == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -1349,7 +1349,8 @@ gst_hls_demux_decrypt_fragment (GstHLSDemux * demux,
|
||||||
demux->key_fragment = NULL;
|
demux->key_fragment = NULL;
|
||||||
|
|
||||||
GST_INFO_OBJECT (demux, "Fetching key %s", key);
|
GST_INFO_OBJECT (demux, "Fetching key %s", key);
|
||||||
key_fragment = gst_uri_downloader_fetch_uri (demux->downloader, key, err);
|
key_fragment =
|
||||||
|
gst_uri_downloader_fetch_uri (demux->downloader, key, FALSE, err);
|
||||||
if (key_fragment == NULL)
|
if (key_fragment == NULL)
|
||||||
goto key_failed;
|
goto key_failed;
|
||||||
demux->key_url = g_strdup (key);
|
demux->key_url = g_strdup (key);
|
||||||
|
@ -1433,7 +1434,7 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux, gboolean caching,
|
||||||
GST_INFO_OBJECT (demux, "Fetching next fragment %s", next_fragment_uri);
|
GST_INFO_OBJECT (demux, "Fetching next fragment %s", next_fragment_uri);
|
||||||
|
|
||||||
download = gst_uri_downloader_fetch_uri (demux->downloader,
|
download = gst_uri_downloader_fetch_uri (demux->downloader,
|
||||||
next_fragment_uri, err);
|
next_fragment_uri, FALSE, err);
|
||||||
|
|
||||||
if (download == NULL)
|
if (download == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in a new issue