summaryrefslogtreecommitdiffstats
path: root/input/cmd_list.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-13 16:47:30 +0200
committerwm4 <wm4@nowhere>2014-09-13 16:47:30 +0200
commit893f4a0feebde98247141855700173011bdeb353 (patch)
tree8c5c2a0579a8e438df57accbb418026a3d38b4cc /input/cmd_list.h
parent2e91d44e2031c299de0d879e2656024d701c27da (diff)
downloadmpv-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.h4
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);