dashdemux: Update for uri downloader API changes

This commit is contained in:
Sebastian Dröge 2014-05-05 09:37:44 +02:00
parent 706a88ccb3
commit bb8227e279

View file

@ -1240,7 +1240,7 @@ gst_dash_demux_refresh_mpd (GstDashDemux * demux)
GST_DEBUG_OBJECT (demux, "Updating manifest file from URL %s", GST_DEBUG_OBJECT (demux, "Updating manifest file from URL %s",
demux->client->mpd_uri); demux->client->mpd_uri);
download = gst_uri_downloader_fetch_uri (demux->downloader, download = gst_uri_downloader_fetch_uri (demux->downloader,
demux->client->mpd_uri, NULL, TRUE, TRUE, NULL); demux->client->mpd_uri, NULL, TRUE, TRUE, TRUE, NULL);
if (download) { if (download) {
GstMpdClient *new_client = NULL; GstMpdClient *new_client = NULL;
@ -1674,7 +1674,7 @@ gst_dash_demux_download_header_fragment (GstDashDemux * demux,
} }
fragment = gst_uri_downloader_fetch_uri_with_range (stream->downloader, fragment = gst_uri_downloader_fetch_uri_with_range (stream->downloader,
next_header_uri, demux->client->mpd_uri, FALSE, FALSE, range_start, next_header_uri, demux->client->mpd_uri, FALSE, FALSE, TRUE, range_start,
range_end, NULL); range_end, NULL);
g_free (next_header_uri); g_free (next_header_uri);
if (fragment) { if (fragment) {
@ -1924,7 +1924,7 @@ gst_dash_demux_stream_download_fragment (GstDashDemux * demux,
fragment.range_start, fragment.range_end); fragment.range_start, fragment.range_end);
download = gst_uri_downloader_fetch_uri_with_range (stream->downloader, download = gst_uri_downloader_fetch_uri_with_range (stream->downloader,
fragment.uri, demux->client->mpd_uri, FALSE, FALSE, fragment.uri, demux->client->mpd_uri, FALSE, FALSE, TRUE,
fragment.range_start, fragment.range_end, NULL); fragment.range_start, fragment.range_end, NULL);
if (download == NULL) { if (download == NULL) {
@ -1957,8 +1957,8 @@ gst_dash_demux_stream_download_fragment (GstDashDemux * demux,
fragment.index_range_end); fragment.index_range_end);
download = download =
gst_uri_downloader_fetch_uri_with_range (stream->downloader, uri, gst_uri_downloader_fetch_uri_with_range (stream->downloader, uri,
demux->client->mpd_uri, FALSE, FALSE, fragment.index_range_start, demux->client->mpd_uri, FALSE, FALSE, TRUE,
fragment.index_range_end, NULL); fragment.index_range_start, fragment.index_range_end, NULL);
if (download) { if (download) {
index_buffer = gst_fragment_get_buffer (download); index_buffer = gst_fragment_get_buffer (download);
if (index_buffer) if (index_buffer)