mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 13:52:10 +00:00
fix error reporting bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2381 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bbf91d07d2
commit
d618193913
@ -73,7 +73,8 @@ static int read_option(char *opt, char *param)
|
||||
break;
|
||||
}
|
||||
if (i == nr_options) {
|
||||
printf("invalid option:\n");
|
||||
if (parser_mode == CONFIG_FILE)
|
||||
printf("invalid option:\n");
|
||||
ret = ERR_NOT_AN_OPTION;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user