mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
mpdparser: Return correct mediaURL value
This fixes a problem where get_mediaURL was returning NULL when segmentURL was unavailable instead of baseURL as a fallback. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1147>
This commit is contained in:
parent
837881ad29
commit
0d79dbedf3
2 changed files with 2 additions and 2 deletions
|
@ -1393,7 +1393,7 @@ gst_mpdparser_get_mediaURL (GstActiveStream * stream,
|
|||
url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL;
|
||||
g_return_val_if_fail (url_prefix != NULL, NULL);
|
||||
|
||||
return segmentURL->media;
|
||||
return url_prefix;
|
||||
}
|
||||
|
||||
/* navigation functions */
|
||||
|
|
|
@ -1424,7 +1424,7 @@ gst_mpdparser_get_mediaURL (GstActiveStream * stream,
|
|||
url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL;
|
||||
g_return_val_if_fail (url_prefix != NULL, NULL);
|
||||
|
||||
return segmentURL->media;
|
||||
return url_prefix;
|
||||
}
|
||||
|
||||
/* navigation functions */
|
||||
|
|
Loading…
Reference in a new issue