gsturi: When setting the same string again do nothing
authorSebastian Dröge <sebastian@centricular.com>
Mon, 26 Sep 2022 11:17:18 +0000 (14:17 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 26 Sep 2022 11:17:18 +0000 (14:17 +0300)
commit498ad133bada157055b281fed99b3f622fdfc8fa
treea85b694e315d1531a399147fb78622d2d443b80f
parentedef6b1149ffd851202c9632259612d84e1042c4
gsturi: When setting the same string again do nothing

Otherwise code like gst_uri_set_host(uri, gst_uri_get_host(uri)) would
first free the string, then create a copy of the freed string and then
assigned that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3076>
subprojects/gstreamer/gst/gsturi.c