summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-12 22:33:21 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-12 22:33:21 +0000
commiteabfd291c415d34796637b0bdcd23a8fa377e3be (patch)
tree07eec21ad84a5ca8011bdfa9747c5ca5fffc27b1 /mplayer.c
parent9dc5c04bce6786935854cb60a98e524ebb7a9e11 (diff)
downloadmpv-eabfd291c415d34796637b0bdcd23a8fa377e3be.tar.bz2
mpv-eabfd291c415d34796637b0bdcd23a8fa377e3be.tar.xz
windows path seperator fixes
mp_basename now looks for \ and / both new playlist parsing: /path/to/thing is treated as a full path c:\windows is treated as a full path \windows is "near-full" and we prepend drive letter file.avi is relative and we prepend path to playlist git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13011 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 6cb451b7c9..79d55697d0 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -619,7 +619,8 @@ static int libmpdemux_was_interrupted(int eof) {
return eof;
}
-#define mp_basename(s) (strrchr(s,'/')==NULL?(char*)s:(strrchr(s,'/')+1))
+#define mp_basename2(s) (strrchr(s,'/')==NULL?(char*)s:(strrchr(s,'/')+1))
+#define mp_basename(s) (strrchr(s,'\\')==NULL?(mp_basename2(s)):(strrchr(s,'\\')+1))
int playtree_add_playlist(play_tree_t* entry)
{