diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-24 12:40:30 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-24 12:40:30 +0000 |
commit | 1cd1c92fb7ca4fd663c19e45184982e2f66dd685 (patch) | |
tree | 80f4fdd506fc6973c833f80f795a7130abea4ae7 /subreader.c | |
parent | c9836ea2b028b14af96bc5692e4d6252751a4c1e (diff) | |
download | mpv-1cd1c92fb7ca4fd663c19e45184982e2f66dd685.tar.bz2 mpv-1cd1c92fb7ca4fd663c19e45184982e2f66dd685.tar.xz |
On Win32 and OS/2, 'x:filename' path style without '\' path separator
is possible as well as 'x:\dir\filename' style. So we should check ':'
unless '\' is found.
patch by KO Myung-Hun, komh chollian net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26087 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c index 56a7ef7d1b..7fff6c14b8 100644 --- a/subreader.c +++ b/subreader.c @@ -1835,8 +1835,9 @@ char** sub_filenames(const char* path, char *fname) subcnt = 0; tmp = strrchr(fname,'/'); -#ifdef WIN32 +#if defined(WIN32) || defined(__OS2__) if(!tmp)tmp = strrchr(fname,'\\'); + if(!tmp)tmp = strrchr(fname,':'); #endif // extract filename & dirname from fname |