# HG changeset patch # User albeu # Date 1138015998 0 # Node ID d631b3c09c53ee9c2e5c4cff9a1e492d3e01000d # Parent f28ef6df8b56ea22444bb0b1daf912fc490dc314 Fix multiple help clauses on the command line with mencoder. diff -r f28ef6df8b56 -r d631b3c09c53 parser-mecmd.c --- a/parser-mecmd.c Mon Jan 23 10:16:48 2006 +0000 +++ b/parser-mecmd.c Mon Jan 23 11:33:18 2006 +0000 @@ -93,6 +93,10 @@ } 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;