[MPlayer-cvslog] r32642 - trunk/path.c

cboesch subversion at mplayerhq.hu
Sun Nov 21 20:46:37 CET 2010


Author: cboesch
Date: Sun Nov 21 20:46:37 2010
New Revision: 32642

Log:
Handle ':' on systems with DOS paths: it allows paths like C:foo.avi.

Modified:
   trunk/path.c

Modified: trunk/path.c
==============================================================================
--- trunk/path.c	Sun Nov 21 18:07:34 2010	(r32641)
+++ trunk/path.c	Sun Nov 21 20:46:37 2010	(r32642)
@@ -202,6 +202,9 @@ const char *mp_basename(const char *path
     s = strrchr(path, '\\');
     if (s)
         path = s + 1;
+    s = strrchr(path, ':');
+    if (s)
+        path = s + 1;
 #endif
     s = strrchr(path, '/');
     return s ? s + 1 : path;


More information about the MPlayer-cvslog mailing list