summaryrefslogtreecommitdiffstats
path: root/core/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-24 21:16:23 +0100
committerwm4 <wm4@nowhere>2013-02-26 01:55:52 +0100
commit2254416a5d58ba38bee21f11083f135aabe4e926 (patch)
tree5743108827d3b075d8fd1b2ae8a7c2a9d1e4318b /core/input/input.h
parent7af2bc66079a0d427946e10ec7869fa042a6ae8a (diff)
downloadmpv-2254416a5d58ba38bee21f11083f135aabe4e926.tar.bz2
mpv-2254416a5d58ba38bee21f11083f135aabe4e926.tar.xz
commands: parse seek time arguments like time options
This means a commands like "seek 13:00 absolute" actually behaves like "--start=13:00", instead of interpreting the argument as fraction as with normal float options. This is probably slightly closer to what you'd expect. As a consequence, the seek argument's type changes from float to double internally.
Diffstat (limited to 'core/input/input.h')
-rw-r--r--core/input/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input.h b/core/input/input.h
index 14d100e152..30cc2ce9ed 100644
--- a/core/input/input.h
+++ b/core/input/input.h
@@ -121,6 +121,7 @@ struct mp_cmd_arg {
union {
int i;
float f;
+ double d;
char *s;
} v;
};