gst/rtsp/rtspurl.c: Fix parsing of password field in url. Fixes #407797.
authorjp.liu <jp_liu@astrocom.cn>
Wed, 14 Feb 2007 10:09:12 +0000 (10:09 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 14 Feb 2007 10:09:12 +0000 (10:09 +0000)
Original commit message from CVS:
Patch by: jp.liu <jp_liu at astrocom dot cn>
* gst/rtsp/rtspurl.c: (rtsp_url_parse):
Fix parsing of password field in url. Fixes #407797.

ChangeLog
gst/rtsp/rtspurl.c

index f2360e2..c5c8078 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2007-02-14  Wim Taymans,,,  <wim@fluendo.com>
 
+       Patch by: jp.liu <jp_liu at astrocom dot cn>
+
+       * gst/rtsp/rtspurl.c: (rtsp_url_parse):
+       Fix parsing of password field in url. Fixes #407797.
+
+2007-02-14  Wim Taymans,,,  <wim@fluendo.com>
+
        * gst/wavparse/gstwavparse.c: (gst_wavparse_class_init),
        (gst_wavparse_reset), (gst_wavparse_init),
        (gst_wavparse_destroy_sourcepad), (gst_wavparse_fmt),
index dd73556..6ef0220 100644 (file)
@@ -95,7 +95,7 @@ rtsp_url_parse (const gchar * urlstr, RTSPUrl ** url)
 
     res->user = g_strndup (p, col - p);
     col++;
-    res->passwd = g_strndup (col, col - at);
+    res->passwd = g_strndup (col, at - col);
 
     /* move to host */
     p = at + 1;