1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-11 04:01:31 +00:00

Fix wrong behavior with slave command by going back to the starting point

of the play_tree to pop all existing configurations.
Patch by Mathieu Schroeter <mathieu dot schroeter at gamesover dot ch>.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27424 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2008-08-07 09:53:59 +00:00
parent 141e81cce4
commit dba246199c

View File

@ -2655,6 +2655,10 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
break;
case MP_CMD_STOP:
// Go back to the starting point.
while (play_tree_iter_up_step
(mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END)
/* NOP */ ;
mpctx->eof = PT_STOP;
brk_cmd = 1;
break;