diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2011-05-29 22:41:52 +0000 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-06 08:56:37 +0300 |
commit | e00b1d7f7fdab471461cfa2dfca602ac311b55fd (patch) | |
tree | 4ba23ab2ab0c74b89c16477514e6f43de713c9d4 | |
parent | d26f11deaf0baa6882e2f599868b8d7cfbaa3ee4 (diff) | |
download | mpv-e00b1d7f7fdab471461cfa2dfca602ac311b55fd.tar.bz2 mpv-e00b1d7f7fdab471461cfa2dfca602ac311b55fd.tar.xz |
stream_cue: Avoid probing empty filename in cue_find_bin()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33521 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream_cue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c index 561529b03d..ecc5e5b43a 100644 --- a/stream/stream_cue.c +++ b/stream/stream_cue.c @@ -208,8 +208,11 @@ static int cue_find_bin (const char *firstline) { fd_bin = -1; for (i = 0; fd_bin == -1 && i < 6; i++) { + if (i <=1 && bin_filename[0] == '\0') + continue; if (i > 1 && strlen(cue_filename) < 3) break; + switch (i) { case 0: /* now try to open that file, without path */ |