summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-13 18:41:34 +0200
committerwm4 <wm4@nowhere>2014-09-13 18:41:34 +0200
commit08116feec7f8fa14e4e18d3a793ab7a6c6fae881 (patch)
tree6671d2ef948d89f7784e1983cc167c38c8b04409
parentb6d8d5e05c461a75238ac95a3faf92a1187e78cb (diff)
downloadmpv-08116feec7f8fa14e4e18d3a793ab7a6c6fae881.tar.bz2
mpv-08116feec7f8fa14e4e18d3a793ab7a6c6fae881.tar.xz
input: fix nested commands
Regression from today.
-rw-r--r--input/cmd_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index 08b9ea5735..bac9b7931a 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -265,7 +265,7 @@ static int is_abort_cmd(struct mp_cmd *cmd)
case MP_CMD_COMMAND_LIST:;
int r = 0;
for (struct mp_cmd *sub = cmd->args[0].v.p; sub; sub = sub->queue_next) {
- int x = is_abort_cmd(cmd);
+ int x = is_abort_cmd(sub);
r = MPMAX(r, x);
}
return r;