From c721948efe497d0e1951bddeec9e7a60c6763945 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 17 Dec 2014 22:56:45 +0100 Subject: command: extend revert_seek command "revert_seek mark" basically forces the seekback point. It's basically a one-way bookmark. --- input/cmd_list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'input/cmd_list.c') diff --git a/input/cmd_list.c b/input/cmd_list.c index 844a833092..fc0ef17ed5 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -69,7 +69,9 @@ const struct mp_cmd_def mp_cmds[] = { }, .allow_auto_repeat = true, }, - { MP_CMD_REVERT_SEEK, "revert_seek", }, + { MP_CMD_REVERT_SEEK, "revert_seek", { + OARG_CHOICE(0, ({"-", 0}, {"mark", 1})), + }}, { MP_CMD_QUIT, "quit", { OARG_INT(0) } }, { MP_CMD_QUIT_WATCH_LATER, "quit_watch_later", { OARG_INT(0) } }, { MP_CMD_STOP, "stop", }, -- cgit v1.2.3