From 7e27663b7bdd92125dd221bf3dbb8f760681c9d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 23 Oct 2014 13:11:41 +0200 Subject: 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. --- input/cmd_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') 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) } }, -- cgit v1.2.3