diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-07-08 15:19:23 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-07-08 15:19:23 +0100 |
commit | 964ec25cef7d4b61e8134c56691d0ff156d081e3 (patch) | |
tree | 96fd7c87142e85d05a732999373bca19d04c2913 | |
parent | 6164de5d50eabc4d20494b8cbf53b250a6695333 (diff) | |
download | xine-lib-964ec25cef7d4b61e8134c56691d0ff156d081e3.tar.gz xine-lib-964ec25cef7d4b61e8134c56691d0ff156d081e3.tar.bz2 |
Have the file input plugin use _x_mrl_unescape() instead of its own code.
-rw-r--r-- | src/input/input_file.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/input/input_file.c b/src/input/input_file.c index c755a84a8..c0ff41a78 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.c @@ -327,31 +327,8 @@ static void file_plugin_dispose (input_plugin_t *this_gen ) { } static char *decode_uri (char *uri) { - - int len = strlen (uri); - int i; - uri = strdup(uri); - - for (i=0; i<len; i++) { - - if ( (uri[i]=='%') && (i<(len-2)) ) { - - int c; - - if ( sscanf (&uri[i+1], "%02x", &c) == 1) { - - uri[i]= (char) c; - - memmove (uri+i+1, uri+i+3, len-i-3); - - len-=2; - } - } - } - - uri[len] = 0; - + _x_mrl_unescape (uri); return uri; } |