From 2254416a5d58ba38bee21f11083f135aabe4e926 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 24 Feb 2013 21:16:23 +0100 Subject: 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. --- core/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/command.c') diff --git a/core/command.c b/core/command.c index 35083f4aa3..cb6843eab4 100644 --- a/core/command.c +++ b/core/command.c @@ -1723,7 +1723,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) int osdl = msg_osd ? 1 : OSD_LEVEL_INVISIBLE; switch (cmd->id) { case MP_CMD_SEEK: { - float v = cmd->args[0].v.f; + double v = cmd->args[0].v.d; int abs = cmd->args[1].v.i; int exact = cmd->args[2].v.i; if (abs == 2) { // Absolute seek to a timestamp in seconds -- cgit v1.2.3