summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-23 00:20:53 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-07-24 21:15:55 +0200
commit2d8e26bb72d8b1645f98979f2715e1a12e9d1ab5 (patch)
tree6a731586bf18ea1832b63a5e64b2411c90850eb5 /input
parent7ee275095f519119bd13c3af8f35f9158741b547 (diff)
downloadmpv-2d8e26bb72d8b1645f98979f2715e1a12e9d1ab5.tar.bz2
mpv-2d8e26bb72d8b1645f98979f2715e1a12e9d1ab5.tar.xz
command: add append-play loadfile mode
"loadfile filename append-play" will now always append the file to the playlist, and if nothing is playing yet, start playback. I don't want to change the semantics of "append" mode, so a new mode is needed. Probably fixes issue #950.
Diffstat (limited to 'input')
-rw-r--r--input/cmd_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index 1096e83d63..6f763c4b64 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -111,7 +111,8 @@ const struct mp_cmd_def mp_cmds[] = {
{ MP_CMD_LOADFILE, "loadfile", {
ARG_STRING,
OARG_CHOICE(0, ({"replace", 0}, {"0", 0},
- {"append", 1}, {"1", 1})),
+ {"append", 1}, {"1", 1},
+ {"append-play", 2})),
OPT_KEYVALUELIST(ARG(str_list), MP_CMD_OPT_ARG),
}},
{ MP_CMD_LOADLIST, "loadlist", {