[MPlayer-cvslog] r26087 - trunk/subreader.c
diego
subversion at mplayerhq.hu
Sun Feb 24 13:40:30 CET 2008
Author: diego
Date: Sun Feb 24 13:40:30 2008
New Revision: 26087
Log:
On Win32 and OS/2, 'x:filename' path style without '\' path separator
is possible as well as 'x:\dir\filename' style. So we should check ':'
unless '\' is found.
patch by KO Myung-Hun, komh chollian net
Modified:
trunk/subreader.c
Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c (original)
+++ trunk/subreader.c Sun Feb 24 13:40:30 2008
@@ -1835,8 +1835,9 @@ char** sub_filenames(const char* path, c
subcnt = 0;
tmp = strrchr(fname,'/');
-#ifdef WIN32
+#if defined(WIN32) || defined(__OS2__)
if(!tmp)tmp = strrchr(fname,'\\');
+ if(!tmp)tmp = strrchr(fname,':');
#endif
// extract filename & dirname from fname
More information about the MPlayer-cvslog
mailing list