summaryrefslogtreecommitdiffstats
path: root/input/cmd_list.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-17 22:56:45 +0100
committerwm4 <wm4@nowhere>2014-12-17 22:56:45 +0100
commitc721948efe497d0e1951bddeec9e7a60c6763945 (patch)
treee8fff959abf30a04d97ce96a0749a3dbc0d19b74 /input/cmd_list.c
parent649e337f4d5efce70211de22b6573230f5b77f0a (diff)
downloadmpv-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/cmd_list.c')
-rw-r--r--input/cmd_list.c4
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", },