summaryrefslogtreecommitdiffstats
path: root/libmpdemux/open.c
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-01 23:35:25 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-01 23:35:25 +0000
commit0fec6dd1e3e71fc9ded31b3fab08ea878a490b76 (patch)
treeea51901608f6c9146f192c2b6fef1ffd62766631 /libmpdemux/open.c
parent8ef87c44bb5e502574776df142dbffb810e36a00 (diff)
downloadmpv-0fec6dd1e3e71fc9ded31b3fab08ea878a490b76.tar.bz2
mpv-0fec6dd1e3e71fc9ded31b3fab08ea878a490b76.tar.xz
Fix url escaping and avoid double escape
Patch by adland, approved by Bertrand Baudet git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12392 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r--libmpdemux/open.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index 641dcbeb4b..5bf5b86a25 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -113,7 +113,6 @@ static void smb_auth_fn(const char *server, const char *share,
stream_t* open_stream(char* filename,char** options, int* file_format){
stream_t* stream=NULL;
-char *escfilename=NULL;
int f=-1;
off_t len;
@@ -486,11 +485,7 @@ if(strncmp("dvd://",filename,6) == 0){
strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) &&
strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) &&
strstr(filename, "://")) {
- //fix filenames with special characters
- escfilename = malloc(strlen(filename)*4);
- url_escape_string(escfilename,filename);
- mp_msg(MSGT_OPEN,MSGL_V,"Filename for url is now %s\n",escfilename);
- url = url_new(escfilename);
+ url = url_new(filename);
}
if(url) {
if (strcmp(url->protocol, "smb")==0){