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:
Thomas Scheuermann 2013-04-08 09:09:33 +02:00 committed by Sebastian Dröge
parent 882677eb8e
commit 9a78542ded

View file

@ -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 == '?')