diff options
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspurl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspurl.c b/gst-libs/gst/rtsp/gstrtspurl.c index 6c7e8c4fa..0acd3d79a 100644 --- a/gst-libs/gst/rtsp/gstrtspurl.c +++ b/gst-libs/gst/rtsp/gstrtspurl.c @@ -136,9 +136,9 @@ gst_rtsp_url_parse (const gchar * urlstr, GstRTSPUrl ** url) if (col == NULL || col > at) goto invalid; - res->user = g_strndup (p, col - p); + res->user = g_uri_unescape_segment (p, col, NULL); col++; - res->passwd = g_strndup (col, at - col); + res->passwd = g_uri_unescape_segment (col, at, NULL); /* move to host */ p = at + 1; |