summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/input.c2
-rw-r--r--mplayer.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/input/input.c b/input/input.c
index 0731e679c1..97e6583b9b 100644
--- a/input/input.c
+++ b/input/input.c
@@ -46,7 +46,7 @@
/// is the default value wich is used for optional arguments
static mp_cmd_t mp_cmds[] = {
- { MP_CMD_SEEK, "seek", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
+ { MP_CMD_SEEK, "seek", 1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
#ifdef USE_EDL
{ MP_CMD_EDL_MARK, "edl_mark", 0, { {-1,{0}} } },
#endif
diff --git a/mplayer.c b/mplayer.c
index 92372cae18..53753fc298 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2750,9 +2750,10 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) {
switch(cmd->id) {
case MP_CMD_SEEK : {
- int v,abs;
+ float v;
+ int abs;
osd_show_percentage = 25;
- v = cmd->args[0].v.i;
+ v = cmd->args[0].v.f;
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
abs_seek_pos = 1;