[MPlayer-cvslog] r34217 - trunk/playtreeparser.c
ib
subversion at mplayerhq.hu
Thu Oct 20 13:15:30 CEST 2011
Author: ib
Date: Thu Oct 20 13:15:30 2011
New Revision: 34217
Log:
Prevent adding a base path wrongly.
For ports with DOS style paths, X:/ at the beginning is allowed
and not unusal. It must be treated as an absolute path.
Modified:
trunk/playtreeparser.c
Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c Thu Oct 20 13:12:41 2011 (r34216)
+++ trunk/playtreeparser.c Thu Oct 20 13:15:30 2011 (r34217)
@@ -838,6 +838,8 @@ play_tree_add_basepath(play_tree_t* pt,
if(fl <= 0 || strstr(pt->files[i],"://") || (pt->files[i][0] == '/')
#if HAVE_DOS_PATHS
|| (strstr(pt->files[i],":\\") == pt->files[i] + 1)
+ // the X:/ format is allowed as well
+ || (strstr(pt->files[i],":/") == pt->files[i] + 1)
#endif
)
continue;
More information about the MPlayer-cvslog
mailing list