[MPlayer-cvslog] r26037 - trunk/stream/stream_file.c

diego subversion at mplayerhq.hu
Wed Feb 20 09:20:49 CET 2008


Author: diego
Date: Wed Feb 20 09:20:49 2008
New Revision: 26037

Log:
Add support for DOS-style file:///x:/path paths.
patch by KO Myung-Hun, komh chollian net


Modified:
   trunk/stream/stream_file.c

Modified: trunk/stream/stream_file.c
==============================================================================
--- trunk/stream/stream_file.c	(original)
+++ trunk/stream/stream_file.c	Wed Feb 20 09:20:49 2008
@@ -113,6 +113,12 @@ static int open_f(stream_t *stream,int m
     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    



More information about the MPlayer-cvslog mailing list