mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 05:22:23 +00:00
Exit when the option parser return M_OPT_EXIT
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9793 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9b17043d56
commit
c193b910c0
@ -110,6 +110,8 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv)
|
||||
no++;
|
||||
} else {
|
||||
// mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp);
|
||||
if(tmp == M_OPT_EXIT)
|
||||
exit(0);
|
||||
goto err_out;
|
||||
}
|
||||
}
|
||||
|
@ -186,8 +186,11 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp < 0)
|
||||
if (tmp < 0) {
|
||||
if (tmp == M_OPT_EXIT)
|
||||
exit(0);
|
||||
goto err_out;
|
||||
}
|
||||
i += tmp;
|
||||
}
|
||||
else /* filename */
|
||||
|
Loading…
Reference in New Issue
Block a user