From 507fa7e2c23623dcbecf20a392ee025002c83866 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 27 Jul 2011 20:59:44 +0300 Subject: options: indicate ambiguous option parameters explicitly Command line options like "-foo xyz" are ambiguous: "xyz" may be a parameter to the option "foo" or an unrelated argument. Instead of relying on the struct m_config mode field (commandline/file) pass parameters to specify ambiguous mode explicitly. Meant for "--foo" options which are never ambiguous on command line either. --- playtree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'playtree.c') diff --git a/playtree.c b/playtree.c index 23859394b9..77c1927a8b 100644 --- a/playtree.c +++ b/playtree.c @@ -465,7 +465,8 @@ play_tree_iter_push_params(play_tree_iter_t* iter) { for(n = 0; pt->params[n].name != NULL ; n++) { int e; - if((e = m_config_set_option(iter->config,pt->params[n].name,pt->params[n].value)) < 0) { + if((e = m_config_set_option(iter->config, pt->params[n].name, + pt->params[n].value, false)) < 0) { mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Error %d while setting option '%s' with value '%s'\n",e, pt->params[n].name,pt->params[n].value); } -- cgit v1.2.3