command: extend revert_seek command

"revert_seek mark" basically forces the seekback point. It's basically a
one-way bookmark.
This commit is contained in:
wm4
2014-12-17 22:56:45 +01:00
parent 649e337f4d
commit c721948efe
3 changed files with 24 additions and 5 deletions

View File

@@ -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", },