diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-21 10:45:53 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-21 10:45:53 +0000 |
commit | 5fafd19ee28c13e90f1af33db15480ed2a42324f (patch) | |
tree | cd3797a4a6ca271690e78b0a838f0bf33ca90c54 /playtree.c | |
parent | f4acdd0f5eb6feb63cff216680959364880a3641 (diff) | |
download | mpv-5fafd19ee28c13e90f1af33db15480ed2a42324f.tar.bz2 mpv-5fafd19ee28c13e90f1af33db15480ed2a42324f.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4293 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'playtree.c')
-rw-r--r-- | playtree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/playtree.c b/playtree.c index b42333faf5..ff2e6e72cc 100644 --- a/playtree.c +++ b/playtree.c @@ -403,8 +403,9 @@ play_tree_iter_push_params(play_tree_iter_t* iter) { 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); } } |