Mercurial > mplayer.hg
diff playtree.c @ 4292:1cee88ee8db5
Bug fix for subconfig option. A -tv option containing the on parameter
is now take as an entry. New functions to set/get options and know
if an option is alredy set. A few comments.
author | albeu |
---|---|
date | Mon, 21 Jan 2002 10:45:53 +0000 |
parents | 83aedfde69f8 |
children | a64075b4970a |
line wrap: on
line diff
--- a/playtree.c Mon Jan 21 09:44:31 2002 +0000 +++ b/playtree.c Mon Jan 21 10:45:53 2002 +0000 @@ -403,8 +403,9 @@ for(n = 0; pt->params[n].name != NULL ; n++) { - if(m_config_set_option(iter->config,pt->params[n].name,pt->params[n].value) < 0) { - mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Error while setting option '%s' with value '%s'\n", + int e; + if((e = m_config_set_option(iter->config,pt->params[n].name,pt->params[n].value)) < 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); } }