From e873d703e956d3e2e68b9e18562983b029b5c7a8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 28 Jul 2011 11:07:47 +0300 Subject: options: change option parsing to use bstr Using bstr allows simpler parsing code, especially because it avoids the need to modify or copy strings just to terminate extracted substrings. --- playtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'playtree.c') diff --git a/playtree.c b/playtree.c index 77c1927a8b..c0b5dd2557 100644 --- a/playtree.c +++ b/playtree.c @@ -465,8 +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, false)) < 0) { + if((e = m_config_set_option0(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