changeset 17467:d631b3c09c53

Fix multiple help clauses on the command line with mencoder.
author albeu
date Mon, 23 Jan 2006 11:33:18 +0000
parents f28ef6df8b56
children 41d8991c3632
files parser-mecmd.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;