summaryrefslogtreecommitdiffstats
path: root/input/cmd_list.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-20 13:38:39 +0100
committerwm4 <wm4@nowhere>2014-02-20 13:40:32 +0100
commit857952dce3e78e678bf6d14046e2290e7016d6b8 (patch)
treedb1be38bcd1bed525f6f4a62c8537405be11d993 /input/cmd_list.h
parent1d0730d22d83e2334db136b0b9f943f02daecef4 (diff)
downloadmpv-857952dce3e78e678bf6d14046e2290e7016d6b8.tar.bz2
mpv-857952dce3e78e678bf6d14046e2290e7016d6b8.tar.xz
input: check for abort cmd in multi-commands
MP_CMD_COMMAND_LIST commands (used to implement key bindings with multiple commands) were not checked for abort commands. Implement it. Remove the remarks about multi-commands being special from the manpage. Seek coalescing is handled differently now, and the issue with abort commands is fixed with this commit.
Diffstat (limited to 'input/cmd_list.h')
-rw-r--r--input/cmd_list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/cmd_list.h b/input/cmd_list.h
index bee981b309..e74a21921e 100644
--- a/input/cmd_list.h
+++ b/input/cmd_list.h
@@ -108,7 +108,8 @@ enum mp_command_type {
};
// Executing this command will abort playback (play something else, or quit).
-bool mp_input_is_abort_cmd(int cmd_id);
+struct mp_cmd;
+bool mp_input_is_abort_cmd(struct mp_cmd *cmd);
struct bstr;
bool mp_replace_legacy_cmd(void *talloc_ctx, struct bstr *s);