diff options
author | Thomas Scheuermann <Thomas.Scheuermann@barco.com> | 2013-04-08 09:09:33 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-08 09:09:33 +0200 |
commit | 9a78542ded27461b70c5b2eb835ef2ed16da32f8 (patch) | |
tree | c4b2556cb9019f7c0581294d807d9aa83b76f209 | |
parent | 882677eb8ee2f8823fd22543b36bf6e4678abd2a (diff) |
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.
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspurl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspurl.c b/gst-libs/gst/rtsp/gstrtspurl.c index c78d401da..3e97588b5 100644 --- a/gst-libs/gst/rtsp/gstrtspurl.c +++ b/gst-libs/gst/rtsp/gstrtspurl.c @@ -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 == '?') |