diff options
author | wm4 <wm4@nowhere> | 2014-09-13 16:47:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-13 16:47:30 +0200 |
commit | 893f4a0feebde98247141855700173011bdeb353 (patch) | |
tree | 8c5c2a0579a8e438df57accbb418026a3d38b4cc /input/cmd_list.h | |
parent | 2e91d44e2031c299de0d879e2656024d701c27da (diff) | |
download | mpv-893f4a0feebde98247141855700173011bdeb353.tar.bz2 mpv-893f4a0feebde98247141855700173011bdeb353.tar.xz |
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.
Diffstat (limited to 'input/cmd_list.h')
-rw-r--r-- | input/cmd_list.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |