Mercurial > mplayer.hg
comparison stream/stream_file.c @ 26005:620976e4f865
Add support for DOS-style file:///x:/path paths.
patch by KO Myung-Hun, komh chollian net
author | diego |
---|---|
date | Wed, 20 Feb 2008 08:20:49 +0000 |
parents | 68015115f63a |
children | 9eb848b34476 |
comparison
equal
deleted
inserted
replaced
26004:ffe773647288 | 26005:620976e4f865 |
---|---|
111 mp_msg(MSGT_OPEN,MSGL_ERR, "[file] No filename\n"); | 111 mp_msg(MSGT_OPEN,MSGL_ERR, "[file] No filename\n"); |
112 m_struct_free(&stream_opts,opts); | 112 m_struct_free(&stream_opts,opts); |
113 return STREAM_ERROR; | 113 return STREAM_ERROR; |
114 } | 114 } |
115 | 115 |
116 #if defined(WIN32) || defined(__OS2__) | |
117 // extract '/' from '/x:/path' | |
118 if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' ) | |
119 filename++; | |
120 #endif | |
121 | |
116 #if defined(__CYGWIN__)|| defined(__MINGW32__) | 122 #if defined(__CYGWIN__)|| defined(__MINGW32__) |
117 m |= O_BINARY; | 123 m |= O_BINARY; |
118 #endif | 124 #endif |
119 | 125 |
120 if(!strcmp(filename,"-")){ | 126 if(!strcmp(filename,"-")){ |