summaryrefslogtreecommitdiffstats
path: root/options/parse_commandline.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/parse_commandline.c')
-rw-r--r--options/parse_commandline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index ab1f28f72b..b90912e786 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -151,11 +151,10 @@ int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files,
if (mode == LOCAL)
flags |= M_SETOPT_BACKUP | M_SETOPT_CHECK_ONLY;
int r = m_config_set_option_ext(config, p.arg, p.param, flags);
- if (r <= M_OPT_EXIT) {
+ if (r == M_OPT_EXIT) {
ret = r;
goto err_out;
- }
- if (r < 0) {
+ } else if (r < 0) {
MP_FATAL(config, "Setting command line option '--%.*s=%.*s' failed.\n",
BSTR_P(p.arg), BSTR_P(p.param));
goto err_out;