From e00b1d7f7fdab471461cfa2dfca602ac311b55fd Mon Sep 17 00:00:00 2001 From: iive Date: Sun, 29 May 2011 22:41:52 +0000 Subject: 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 --- stream/stream_cue.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stream') 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 */ -- cgit v1.2.3