From 893f4a0feebde98247141855700173011bdeb353 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 13 Sep 2014 16:47:30 +0200 Subject: input: distinguish playlist navigation and quit commands for abort Refine the ugly hack from the previous commit, and let the "quit" command and some others abort playback immediately. For playlist_next/playlist_prev, still use the old hack, because we can't know if they would stop playback or not. --- input/cmd_list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'input/cmd_list.h') diff --git a/input/cmd_list.h b/input/cmd_list.h index ada1932f8d..b2b8e2a4d2 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -101,8 +101,10 @@ enum mp_command_type { MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p }; -// Executing this command will abort playback (play something else, or quit). +// Executing this command will maybe abort playback (play something else, or quit). struct mp_cmd; +bool mp_input_is_maybe_abort_cmd(struct mp_cmd *cmd); +// This command will definitely abort playback. bool mp_input_is_abort_cmd(struct mp_cmd *cmd); bool mp_input_is_repeatable_cmd(struct mp_cmd *cmd); -- cgit v1.2.3