mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 21:31:13 +00:00
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:
parent
c2a6adddea
commit
6a55bbb4a2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user