ext: Update for GstUriDownloader API changes

This commit is contained in:
Sebastian Dröge 2014-02-11 14:18:32 +01:00
parent d445374067
commit 3a5abc233d
3 changed files with 9 additions and 9 deletions

View file

@ -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)

View file

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

View file

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