From 3a5abc233d025b3544dcce2847c2d875e8d03b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Feb 2014 14:18:32 +0100 Subject: [PATCH] ext: Update for GstUriDownloader API changes --- ext/dash/gstdashdemux.c | 8 ++++---- ext/hls/gsthlsdemux.c | 6 +++--- ext/smoothstreaming/gstmssdemux.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 3fb8032e7c..ce7affbb6e 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1239,7 +1239,7 @@ gst_dash_demux_refresh_mpd (GstDashDemux * demux) GST_DEBUG_OBJECT (demux, "Updating manifest file from URL %s", demux->client->mpd_uri); download = gst_uri_downloader_fetch_uri (demux->downloader, - demux->client->mpd_uri); + demux->client->mpd_uri, NULL); if (download) { GstMpdClient *new_client = NULL; @@ -1673,7 +1673,7 @@ gst_dash_demux_download_header_fragment (GstDashDemux * demux, } fragment = gst_uri_downloader_fetch_uri_with_range (stream->downloader, - next_header_uri, range_start, range_end); + next_header_uri, range_start, range_end, NULL); g_free (next_header_uri); if (fragment) { buffer = gst_fragment_get_buffer (fragment); @@ -1923,7 +1923,7 @@ gst_dash_demux_stream_download_fragment (GstDashDemux * demux, fragment.range_start, fragment.range_end); download = gst_uri_downloader_fetch_uri_with_range (stream->downloader, - fragment.uri, fragment.range_start, fragment.range_end); + fragment.uri, fragment.range_start, fragment.range_end, NULL); if (download == NULL) { gst_media_fragment_info_clear (&fragment); @@ -1955,7 +1955,7 @@ gst_dash_demux_stream_download_fragment (GstDashDemux * demux, fragment.index_range_end); download = gst_uri_downloader_fetch_uri_with_range (stream->downloader, uri, - fragment.index_range_start, fragment.index_range_end); + fragment.index_range_start, fragment.index_range_end, NULL); if (download) { index_buffer = gst_fragment_get_buffer (download); if (index_buffer) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 03fa2d78f6..d53fb9072a 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -1077,7 +1077,7 @@ gst_hls_demux_update_playlist (GstHLSDemux * demux, gboolean update) const gchar *uri = gst_m3u8_client_get_current_uri (demux->client); - download = gst_uri_downloader_fetch_uri (demux->downloader, uri); + download = gst_uri_downloader_fetch_uri (demux->downloader, uri, NULL); if (download == NULL) return FALSE; @@ -1307,7 +1307,7 @@ gst_hls_demux_decrypt_fragment (GstHLSDemux * demux, gsize unpadded_size; GST_INFO_OBJECT (demux, "Fetching key %s", key); - key_fragment = gst_uri_downloader_fetch_uri (demux->downloader, key); + key_fragment = gst_uri_downloader_fetch_uri (demux->downloader, key, NULL); if (key_fragment == NULL) goto key_failed; @@ -1384,7 +1384,7 @@ gst_hls_demux_get_next_fragment (GstHLSDemux * demux, gboolean caching) GST_INFO_OBJECT (demux, "Fetching next fragment %s", next_fragment_uri); download = gst_uri_downloader_fetch_uri (demux->downloader, - next_fragment_uri); + next_fragment_uri, NULL); if (download && key) download = gst_hls_demux_decrypt_fragment (demux, download, key, iv); diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index d56a20f596..27d11d7f61 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -937,7 +937,7 @@ gst_mss_demux_reload_manifest (GstMssDemux * mssdemux) downloader = gst_uri_downloader_new (); manifest_data = - gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri); + gst_uri_downloader_fetch_uri (downloader, mssdemux->manifest_uri, NULL); manifest_buffer = gst_fragment_get_buffer (manifest_data); g_object_unref (manifest_data); @@ -1033,7 +1033,7 @@ 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); + fragment = gst_uri_downloader_fetch_uri (stream->downloader, url, NULL); g_free (path); g_free (url);