diff options
author | wm4 <wm4@nowhere> | 2014-12-17 22:56:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-17 22:56:45 +0100 |
commit | c721948efe497d0e1951bddeec9e7a60c6763945 (patch) | |
tree | e8fff959abf30a04d97ce96a0749a3dbc0d19b74 /input | |
parent | 649e337f4d5efce70211de22b6573230f5b77f0a (diff) | |
download | mpv-c721948efe497d0e1951bddeec9e7a60c6763945.tar.bz2 mpv-c721948efe497d0e1951bddeec9e7a60c6763945.tar.xz |
command: extend revert_seek command
"revert_seek mark" basically forces the seekback point. It's basically a
one-way bookmark.
Diffstat (limited to 'input')
-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 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", }, |