summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-02 10:43:06 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-02 10:43:06 +0200
commit5d34b071d96c6124e21bbc12401680683ca46a92 (patch)
treeaa56826533c72537c91b8194b09d13e9590b1295
parentf910ffb637ed9f701b5cb4a1c23f4c9b67e7acb8 (diff)
downloadgstreamer-plugins-bad-5d34b071d96c6124e21bbc12401680683ca46a92.tar.gz
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.
-rw-r--r--ext/smoothstreaming/gstmssdemux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c
index 56889ea6e..15326b7ec 100644
--- a/ext/smoothstreaming/gstmssdemux.c
+++ b/ext/smoothstreaming/gstmssdemux.c
@@ -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);