mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
Don't prepend basepath to a full unix path. ( 10l to Joey. )
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13306 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f1794afafa
commit
6c46da9932
@ -624,8 +624,9 @@ play_tree_add_basepath(play_tree_t* pt, char* bp) {
|
||||
|
||||
for(i = 0 ; pt->files[i] != NULL ; i++) {
|
||||
fl = strlen(pt->files[i]);
|
||||
// if we find url:// or X:\ at the beginning, don't mangle it.
|
||||
if(fl <= 0 || strstr(pt->files[i],"://") || strstr(pt->files[i],":\\") == pt->files[i] + 1)
|
||||
// if we find a full unix path, url:// or X:\ at the beginning,
|
||||
// don't mangle it.
|
||||
if(fl <= 0 || strstr(pt->files[i],"://") || (strstr(pt->files[i],":\\") == pt->files[i] + 1) || (pt->files[i][0] == '/') )
|
||||
continue;
|
||||
// if the path begins with \ then prepend drive letter to it.
|
||||
if (pt->files[i][0] == '\\') {
|
||||
|
Loading…
Reference in New Issue
Block a user