mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
mmssrc: Use the escaped location for the RTSP redirect message
gst_uri_get_location() unescapes the location, which could result in an invalid RTSP URI.
This commit is contained in:
parent
42ac5097a0
commit
0a2a0fc344
1 changed files with 4 additions and 3 deletions
|
@ -439,9 +439,10 @@ gst_mms_start (GstBaseSrc * bsrc)
|
|||
|
||||
GST_ERROR_OBJECT (mms,
|
||||
"Could not connect to this stream, redirecting to rtsp");
|
||||
location = gst_uri_get_location (mms->uri_name);
|
||||
url = g_strdup_printf ("rtsp://%s", location);
|
||||
g_free (location);
|
||||
location = strstr (mms->uri_name, "://");
|
||||
if (location == NULL || *location == '\0' || *(location + 3) == '\0')
|
||||
goto no_uri;
|
||||
url = g_strdup_printf ("rtsp://%s", location + 3);
|
||||
|
||||
gst_element_post_message (GST_ELEMENT_CAST (mms),
|
||||
gst_message_new_element (GST_OBJECT_CAST (mms),
|
||||
|
|
Loading…
Reference in a new issue