Only "pop" subtree params if they had previously been "pushed",

and afterwards reset the "pushed" value to 0 again.
Similarly only set the PLAY_TREE_RND_PLAYED flag
if the entry had been pushed before.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27106 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-06-20 19:51:43 +00:00
parent c2a6adddea
commit 6a55bbb4a2
1 changed files with 2 additions and 1 deletions

View File

@ -710,8 +710,9 @@ play_tree_iter_up_step(play_tree_iter_t* iter, int d,int with_nodes) {
iter->tree = iter->tree->parent;
// Pop subtree params
if(iter->config) {
if(iter->config && iter->entry_pushed > 0) {
m_config_pop(iter->config);
iter->entry_pushed = 0;
if(iter->mode == PLAY_TREE_ITER_RND)
iter->tree->flags |= PLAY_TREE_RND_PLAYED;
}