mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
rtspsrc: Also handle rtsps://
and similar URLs as absolute in other places
Previously a direct comparison with `rtsp://` was performed, which didn't catch cases like `rtsps://`. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3563 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6982>
This commit is contained in:
parent
dfc03b9a2e
commit
6f984939c4
1 changed files with 2 additions and 2 deletions
|
@ -2486,7 +2486,7 @@ gst_rtspsrc_create_stream (GstRTSPSrc * src, GstSDPMessage * sdp, gint idx,
|
|||
* If the control_path starts with a non rtsp: protocol we will most
|
||||
* likely build a URL that the server will fail to understand, this is ok,
|
||||
* we will fail then. */
|
||||
if (g_str_has_prefix (control_path, "rtsp://"))
|
||||
if (gst_uri_is_valid (control_path))
|
||||
stream->conninfo.location = g_strdup (control_path);
|
||||
else {
|
||||
const gchar *base;
|
||||
|
@ -8233,7 +8233,7 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
|
|||
break;
|
||||
|
||||
/* only take fully qualified urls */
|
||||
if (g_str_has_prefix (control, "rtsp://"))
|
||||
if (gst_uri_is_valid (control))
|
||||
break;
|
||||
}
|
||||
if (control) {
|
||||
|
|
Loading…
Reference in a new issue