rtspsrc: Fix handling of * control path

Regression introduced by 7f9d689572.
Thanks to Tristan Matthews for reporting this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4497>
This commit is contained in:
Sebastian Dröge 2023-04-27 13:00:42 +03:00 committed by GStreamer Marge Bot
parent 0db6149880
commit ef89bac181

View file

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