mssdemux: Update for URI downloader API changes
And include the manifest file as referer in requests, and make sure to set refresh=TRUE when updating the manifest.
This commit is contained in:
parent
f910ffb637
commit
5d34b071d9
@ -939,8 +939,8 @@ gst_mss_demux_reload_manifest (GstMssDemux * mssdemux)
|
|||||||
downloader = gst_uri_downloader_new ();
|
downloader = gst_uri_downloader_new ();
|
||||||
|
|
||||||
manifest_data =
|
manifest_data =
|
||||||
gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri, TRUE,
|
gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri, NULL,
|
||||||
NULL);
|
TRUE, TRUE, NULL);
|
||||||
manifest_buffer = gst_fragment_get_buffer (manifest_data);
|
manifest_buffer = gst_fragment_get_buffer (manifest_data);
|
||||||
g_object_unref (manifest_data);
|
g_object_unref (manifest_data);
|
||||||
|
|
||||||
@ -1037,7 +1037,8 @@ gst_mss_demux_stream_download_fragment (GstMssDemuxStream * stream,
|
|||||||
GST_DEBUG_OBJECT (mssdemux, "Got url '%s' for stream %p", url, stream);
|
GST_DEBUG_OBJECT (mssdemux, "Got url '%s' for stream %p", url, stream);
|
||||||
|
|
||||||
fragment =
|
fragment =
|
||||||
gst_uri_downloader_fetch_uri (stream->downloader, url, FALSE, NULL);
|
gst_uri_downloader_fetch_uri (stream->downloader, url,
|
||||||
|
mssdemux->manifest_uri, FALSE, FALSE, NULL);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
g_free (url);
|
g_free (url);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user