rtspsrc: Handle the case of *
as session-wide control URL from the SDP
Just like the comment above says this is supposed to indicate that the same URL should be used as for the connection so far. If encountering this case simply do nothing. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6926>
This commit is contained in:
parent
e73e34fd6f
commit
e65344afac
@ -8260,10 +8260,15 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
|
||||
if (control == NULL)
|
||||
break;
|
||||
|
||||
if (g_strcmp0 (control, "*") == 0)
|
||||
break;
|
||||
|
||||
/* only take fully qualified urls */
|
||||
if (gst_uri_is_valid (control))
|
||||
break;
|
||||
}
|
||||
|
||||
if (g_strcmp0 (control, "*") != 0) {
|
||||
if (control) {
|
||||
g_free (src->conninfo.location);
|
||||
src->conninfo.location = g_strdup (control);
|
||||
@ -8278,6 +8283,7 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
|
||||
g_free (src->control);
|
||||
src->control = g_strdup (control);
|
||||
}
|
||||
}
|
||||
|
||||
/* create streams */
|
||||
n_streams = gst_sdp_message_medias_len (sdp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user