summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 18:33:23 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-27 18:33:23 +0000
commit03d71f6817458ea28f4530132e4e7ad753707d80 (patch)
treebec1c36141c4cf2849b9491173618276bef36b62 /mplayer.c
parent28ce0758cf26af0980ed374764736b46a72c453b (diff)
downloadmpv-03d71f6817458ea28f4530132e4e7ad753707d80.tar.bz2
mpv-03d71f6817458ea28f4530132e4e7ad753707d80.tar.xz
Fix stepping in the playtree when interupting libmpdemux.
Thanks to Jonas Jermann for the report. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17980 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 88158b5769..a205ee26b8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -131,6 +131,7 @@ extern int import_initial_playtree_into_gui(play_tree_t* my_playtree, m_config_t
play_tree_t* playtree;
play_tree_iter_t* playtree_iter = NULL;
+static int play_tree_step = 1;
#define PT_NEXT_ENTRY 1
#define PT_PREV_ENTRY -1
@@ -716,6 +717,7 @@ static int libmpdemux_was_interrupted(int eof) {
exit_player_with_rc(MSGTR_Exit_quit, (cmd->nargs > 0)? cmd->args[0].v.i : 0);
case MP_CMD_PLAY_TREE_STEP: {
eof = (cmd->args[0].v.i > 0) ? PT_NEXT_ENTRY : PT_PREV_ENTRY;
+ play_tree_step = (cmd->args[0].v.i == 0) ? 1 : cmd->args[0].v.i;
} break;
case MP_CMD_PLAY_TREE_UP_STEP: {
eof = (cmd->args[0].v.i > 0) ? PT_UP_NEXT : PT_UP_PREV;
@@ -769,8 +771,6 @@ int playtree_add_playlist(play_tree_t* entry)
return PT_NEXT_SRC;
}
-static int play_tree_step = 1;
-
int sub_source(void)
{
int source = -1;