[vlc-devel] [PATCH] Fix for Bug #707233. To allow playing of urls containg %20.

Vikas vjoshivikas at gmail.com
Sun Aug 11 19:33:28 CEST 2013


When there is %20 in the url in place of space, this change converts it to Space. With this fix the url with %20 can be played.
When there are actual spaces in url, the problem still remains as the spaces in url are taken as multiple arguments.
---
 src/text/url.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/text/url.c b/src/text/url.c
index 40043ba..d4e7cdc 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -399,6 +399,8 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char *str, unsigned char opt)
 
     char *cur = buf, *next;
 
+    decode_URI(buf);
+
     /* URL scheme */
     next = buf;
     while ((*next >= 'A' && *next <= 'Z') || (*next >= 'a' && *next <= 'z')
-- 
1.7.9.5




More information about the vlc-devel mailing list