Mercurial > mplayer.hg
changeset 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 | ffe773647288 |
children | ac00f0e343df |
files | stream/stream_file.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_file.c Tue Feb 19 23:31:12 2008 +0000 +++ b/stream/stream_file.c Wed Feb 20 08:20:49 2008 +0000 @@ -113,6 +113,12 @@ 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