diff options
author | wm4 <wm4@nowhere> | 2014-10-20 23:55:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-21 00:15:04 +0200 |
commit | 131633b4e5a378ce67ad7e04ca713097f0c01c71 (patch) | |
tree | 44f48ef4af18b7b845ab60899505640d51c88128 /input/cmd_list.c | |
parent | b79f291f4bb6f3f2efb24b9f03829784c17a0541 (diff) | |
download | mpv-131633b4e5a378ce67ad7e04ca713097f0c01c71.tar.bz2 mpv-131633b4e5a378ce67ad7e04ca713097f0c01c71.tar.xz |
command: extend sub_add command
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index e6329b9d89..885fc01dc4 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -89,7 +89,9 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_SHOW_TEXT, "show_text", { ARG_STRING, OARG_INT(-1), OARG_INT(0) }, .allow_auto_repeat = true}, { MP_CMD_SHOW_PROGRESS, "show_progress", .allow_auto_repeat = true}, - { MP_CMD_SUB_ADD, "sub_add", { ARG_STRING } }, + { MP_CMD_SUB_ADD, "sub_add", { ARG_STRING, + OARG_CHOICE(0, ({"select", 0}, {"auto", 1})), + ARG_STRING, ARG_STRING } }, { MP_CMD_SUB_REMOVE, "sub_remove", { OARG_INT(-1) } }, { MP_CMD_SUB_RELOAD, "sub_reload", { OARG_INT(-1) } }, |