input: fix nested commands

Regression from today.
This commit is contained in:
wm4 2014-09-13 18:41:34 +02:00
parent b6d8d5e05c
commit 08116feec7
1 changed files with 1 additions and 1 deletions

View File

@ -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;