From d7df4557b5823e8c555371b4b43aed36796d538a Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 23 Jan 2006 11:33:18 +0000 Subject: [PATCH] Fix multiple help clauses on the command line with mencoder. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17468 b3059339-0415-0410-9bf9-f77b7e298cf2 --- parser-mecmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser-mecmd.c b/parser-mecmd.c index b77f8c421e..9070f9890a 100644 --- a/parser-mecmd.c +++ b/parser-mecmd.c @@ -93,6 +93,10 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) } if(!entry || (mp_opt->flags & M_OPT_GLOBAL)){ tmp = m_config_set_option(config, opt, argv[i + 1]); + if (tmp <= M_OPT_EXIT) { + opt_exit = 1; + tmp = M_OPT_EXIT - tmp; + } if(tmp < 0){ // mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp); goto err_out;