mpdparser: Be consistent about returning duplicated URL
authorRafał Dzięgiel <rafostar.github@gmail.com>
Thu, 14 Oct 2021 08:09:31 +0000 (10:09 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 14 Nov 2022 23:45:53 +0000 (23:45 +0000)
commit548bbc31471bdad19b65598991992d9d865680d5
treeac87fe3d9672597ace8839a9cff51e9f4b8b8cc3
parent0d79dbedf3254b02c82f0544827db119b2abe1b4
mpdparser: Be consistent about returning duplicated URL

Instead of returning a "const gchar" or a "gchar" that should not be freed, always
return a duplicated string as those functions were used together with g_strdup anyway.

This is needed to prepare support for returning modified strings in next commit.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1147>
subprojects/gst-plugins-bad/ext/dash/gstmpdclient.c
subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c
subprojects/gst-plugins-bad/ext/dash/gstmpdparser.h
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstmpdclient.c
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstmpdparser.c
subprojects/gst-plugins-good/ext/adaptivedemux2/dash/gstmpdparser.h