mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 06:01:56 +00:00
Add support for DOS-style file:///x:/path paths.
patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26037 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
32c1ba35db
commit
b4558a3738
@ -113,6 +113,12 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
|
||||
return STREAM_ERROR;
|
||||
}
|
||||
|
||||
#if defined(WIN32) || defined(__OS2__)
|
||||
// extract '/' from '/x:/path'
|
||||
if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' )
|
||||
filename++;
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__)|| defined(__MINGW32__)
|
||||
m |= O_BINARY;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user