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:
Sebastian Dröge 2014-05-02 10:43:06 +02:00
parent f910ffb637
commit 5d34b071d9

View file

@ -939,8 +939,8 @@ gst_mss_demux_reload_manifest (GstMssDemux * mssdemux)
downloader = gst_uri_downloader_new ();
manifest_data =
gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri, TRUE,
NULL);
gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri, NULL,
TRUE, TRUE, NULL);
manifest_buffer = gst_fragment_get_buffer (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);
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 (url);