diff options
author | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-12 22:33:21 +0000 |
---|---|---|
committer | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-12 22:33:21 +0000 |
commit | eabfd291c415d34796637b0bdcd23a8fa377e3be (patch) | |
tree | 07eec21ad84a5ca8011bdfa9747c5ca5fffc27b1 /mplayer.c | |
parent | 9dc5c04bce6786935854cb60a98e524ebb7a9e11 (diff) | |
download | mpv-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |