mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
rtsp: Don't use / as path if no path was provided
RTSP does not mandate that a non-zero-length path is used and some devices (e.g. IQinVision IQeye 1080p) requires that a zero-length path is used.
This commit is contained in:
parent
882677eb8e
commit
9a78542ded
1 changed files with 4 additions and 1 deletions
|
@ -184,7 +184,10 @@ gst_rtsp_url_parse (const gchar * urlstr, GstRTSPUrl ** url)
|
|||
res->abspath = g_strndup (p, delim - p);
|
||||
p = delim;
|
||||
} else {
|
||||
res->abspath = g_strdup ("/");
|
||||
/* IQinVision IQeye 1080p fails if a path '/' is provided
|
||||
* and RTSP does not mandate that a non-zero-length path
|
||||
* must be used */
|
||||
res->abspath = g_strdup ("");
|
||||
}
|
||||
|
||||
if (p && *p == '?')
|
||||
|
|
Loading…
Reference in a new issue