From aa6d0ac08f3c6b2f18fd6f2152190629568ac3f6 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 11 Jan 2003 17:01:23 +0000 Subject: [PATCH] cosmetics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8894 b3059339-0415-0410-9bf9-f77b7e298cf2 --- parser-mecmd.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/parser-mecmd.c b/parser-mecmd.c index fd868e5261..a6095ec555 100644 --- a/parser-mecmd.c +++ b/parser-mecmd.c @@ -119,9 +119,13 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) break; } } - if(!entry || (mp_opt->flags & M_OPT_GLOBAL)) + if(!entry || (mp_opt->flags & M_OPT_GLOBAL)){ tmp = m_config_set_option(config, opt, argv[i + 1]); - else { + if(tmp < 0){ +// mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp); + goto err_out; + } + } else { tmp = m_config_check_option(config, opt, argv[i + 1]); if(tmp >= 0) { entry->opts = realloc(entry->opts,(no+2)*2*sizeof(char*)); @@ -129,10 +133,11 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv) entry->opts[2*no+1] = argv[i + 1] ? strdup(argv[i + 1]) : NULL; entry->opts[2*no+2] = entry->opts[2*no+3] = NULL; no++; + } else { +// mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp); + goto err_out; } } - if (tmp < 0) - goto err_out; i += tmp; } else /* filename */ add_file(argv[i]);