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:
Rafał Dzięgiel 2021-10-14 10:18:40 +02:00 committed by GStreamer Marge Bot
parent 837881ad29
commit 0d79dbedf3
2 changed files with 2 additions and 2 deletions

View file

@ -1393,7 +1393,7 @@ gst_mpdparser_get_mediaURL (GstActiveStream * stream,
url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL; url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL;
g_return_val_if_fail (url_prefix != NULL, NULL); g_return_val_if_fail (url_prefix != NULL, NULL);
return segmentURL->media; return url_prefix;
} }
/* navigation functions */ /* navigation functions */

View file

@ -1424,7 +1424,7 @@ gst_mpdparser_get_mediaURL (GstActiveStream * stream,
url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL; url_prefix = segmentURL->media ? segmentURL->media : stream->baseURL;
g_return_val_if_fail (url_prefix != NULL, NULL); g_return_val_if_fail (url_prefix != NULL, NULL);
return segmentURL->media; return url_prefix;
} }
/* navigation functions */ /* navigation functions */