diff options
author | wm4 <wm4@nowhere> | 2014-09-13 14:10:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-13 14:10:10 +0200 |
commit | 2dd819705dcbeb4a20c0d6123082f9662cfa2ae4 (patch) | |
tree | 070013e22ffc0d0fffc2378f20866c291d262ccf /input/cmd_list.c | |
parent | 7c77f0b803b85ad6b811f90755437fc42cbd4104 (diff) | |
download | mpv-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/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 2 |
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; |