mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
dashdemux: Properly handle relative and non-HTTP URIs for the headers/indices
gst_uri_join_strings() will return the second parameter if it is an absolute URI. No need to do a (wrong) check if the URI is absolute or not beforehand. https://bugzilla.gnome.org/show_bug.cgi?id=755134
This commit is contained in:
parent
6cafc64416
commit
7c9525830e
1 changed files with 3 additions and 7 deletions
|
@ -911,27 +911,23 @@ gst_dash_demux_stream_update_headers_info (GstAdaptiveDemuxStream * stream)
|
|||
&path, dashstream->index,
|
||||
&stream->fragment.header_range_start, &stream->fragment.header_range_end);
|
||||
|
||||
if (path != NULL && strncmp (path, "http://", 7) != 0) {
|
||||
if (path != NULL) {
|
||||
stream->fragment.header_uri =
|
||||
gst_uri_join_strings (gst_mpdparser_get_baseURL (dashdemux->client,
|
||||
dashstream->index), path);
|
||||
g_free (path);
|
||||
} else {
|
||||
stream->fragment.header_uri = path;
|
||||
path = NULL;
|
||||
}
|
||||
path = NULL;
|
||||
|
||||
gst_mpd_client_get_next_header_index (dashdemux->client,
|
||||
&path, dashstream->index,
|
||||
&stream->fragment.index_range_start, &stream->fragment.index_range_end);
|
||||
|
||||
if (path != NULL && strncmp (path, "http://", 7) != 0) {
|
||||
if (path != NULL) {
|
||||
stream->fragment.index_uri =
|
||||
gst_uri_join_strings (gst_mpdparser_get_baseURL (dashdemux->client,
|
||||
dashstream->index), path);
|
||||
g_free (path);
|
||||
} else {
|
||||
stream->fragment.index_uri = path;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue