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
@ -184,7 +184,10 @@ gst_rtsp_url_parse (const gchar * urlstr, GstRTSPUrl ** url)
|
|||||||
res->abspath = g_strndup (p, delim - p);
|
res->abspath = g_strndup (p, delim - p);
|
||||||
p = delim;
|
p = delim;
|
||||||
} else {
|
} 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 == '?')
|
if (p && *p == '?')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user