rtspsrc: Fix handling of `*` control path
authorSebastian Dröge <sebastian@centricular.com>
Thu, 27 Apr 2023 10:00:42 +0000 (13:00 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 27 Apr 2023 17:37:26 +0000 (18:37 +0100)
Regression introduced by 7f9d689572843ff9e0b8a92128034a8fc4a14d96.
Thanks to Tristan Matthews for reporting this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4503>

subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c

index bf389f8..58c7a6a 100644 (file)
@@ -2449,7 +2449,7 @@ gst_rtspsrc_create_stream (GstRTSPSrc * src, GstSDPMessage * sdp, gint idx,
 
       base = get_aggregate_control (src);
       if (g_strcmp0 (control_path, "*") == 0)
-        control_path = g_strdup (base);
+        stream->conninfo.location = g_strdup (base);
       else
         stream->conninfo.location = gst_uri_join_strings (base, control_path);
     }