summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-13 14:10:10 +0200
committerwm4 <wm4@nowhere>2014-09-13 14:10:10 +0200
commit2dd819705dcbeb4a20c0d6123082f9662cfa2ae4 (patch)
tree070013e22ffc0d0fffc2378f20866c291d262ccf /input
parent7c77f0b803b85ad6b811f90755437fc42cbd4104 (diff)
downloadmpv-2dd819705dcbeb4a20c0d6123082f9662cfa2ae4.tar.bz2
mpv-2dd819705dcbeb4a20c0d6123082f9662cfa2ae4.tar.xz
input: "quit_watch_later" and "stop" are abort commands
This means they get special handling for asynchronously aborting playback, even if the player is "stuck". Also document "stop". It seems somewhat useful for client API users (although that will be implemented properly only in the following commits.)
Diffstat (limited to 'input')
-rw-r--r--input/cmd_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index 96e9d91f16..88e5b78f91 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -255,6 +255,8 @@ static bool is_abort_cmd(int cmd_id)
{
switch (cmd_id) {
case MP_CMD_QUIT:
+ case MP_CMD_QUIT_WATCH_LATER:
+ case MP_CMD_STOP:
case MP_CMD_PLAYLIST_NEXT:
case MP_CMD_PLAYLIST_PREV:
return true;