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-03-11 00:14:30 +0100
commit89f20cd2f35ad25271ac91606ec459467d61a0ed (patch)
tree3dfa4e4d9da5c77997d5a1e1823b6e29d90bcf00 /input/cmd_list.h
parentcce2b675acaef005720faed63106f7d98da7253e (diff)
downloadmpv-89f20cd2f35ad25271ac91606ec459467d61a0ed.tar.bz2
mpv-89f20cd2f35ad25271ac91606ec459467d61a0ed.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 211df2b0b0..870294cfaf 100644
--- a/input/cmd_list.h
+++ b/input/cmd_list.h
@@ -107,7 +107,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);