diff options
author | wm4 <wm4@nowhere> | 2014-10-23 13:11:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-23 13:13:23 +0200 |
commit | 7e27663b7bdd92125dd221bf3dbb8f760681c9d7 (patch) | |
tree | 80ca65973071952e49a805081ab853436feedbcf /input/cmd_list.c | |
parent | 5a3c6563e4df18c7ca2306d5f22a5a3ecbbeb8ce (diff) | |
download | mpv-7e27663b7bdd92125dd221bf3dbb8f760681c9d7.tar.bz2 mpv-7e27663b7bdd92125dd221bf3dbb8f760681c9d7.tar.xz |
command: add a "cached" mode to sub_add
This avoids reloading a subtitle if it was already added. In all cases,
the subtitle is selected.
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index 6f9bd17af9..fe014c4983 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -91,7 +91,7 @@ const struct mp_cmd_def mp_cmds[] = { .allow_auto_repeat = true}, { MP_CMD_SHOW_PROGRESS, "show_progress", .allow_auto_repeat = true}, { MP_CMD_SUB_ADD, "sub_add", { ARG_STRING, - OARG_CHOICE(0, ({"select", 0}, {"auto", 1})), + OARG_CHOICE(0, ({"select", 0}, {"auto", 1}, {"cached", 2})), OARG_STRING(""), OARG_STRING("") } }, { MP_CMD_SUB_REMOVE, "sub_remove", { OARG_INT(-1) } }, { MP_CMD_SUB_RELOAD, "sub_reload", { OARG_INT(-1) } }, |