diff options
author | rrooij <rderooij685@gmail.com> | 2015-05-18 22:56:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-19 21:33:40 +0200 |
commit | e17a8550c408e3ecbe8b1d33dbab694eabe2c713 (patch) | |
tree | 9f37b7918f8efe3f991255e464926bbb472d775b /input/cmd_list.c | |
parent | be9bf4cc7c1b61a8abcbb3f64386ef10d8aa9f61 (diff) | |
download | mpv-e17a8550c408e3ecbe8b1d33dbab694eabe2c713.tar.bz2 mpv-e17a8550c408e3ecbe8b1d33dbab694eabe2c713.tar.xz |
input: add relative percentage seek
Only absolute percentage seeking was permitted first. It is now also
possible to seek by relative percentage.
MPSEEK_FACTOR is used as seek_type.
Fixes #1950.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'input/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index e7918f26d6..d7dda48ad4 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -63,6 +63,7 @@ const struct mp_cmd_def mp_cmds[] = { OARG_FLAGS(4|0, ({"relative", 4|0}, {"-", 4|0}, {"absolute-percent", 4|1}, {"absolute", 4|2}, + {"relative-percent", 4|3}, {"keyframes", 32|8}, {"exact", 32|16})), // backwards compatibility only |