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 (); 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);