diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-17 15:56:25 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-17 15:56:25 +0000 |
commit | f47114f9324212ea0c04c55b3d7b9fa6852fdd50 (patch) | |
tree | b8e9978b8772f832fbf47bc5a4bef9945f012352 | |
parent | 80ddeccff93c730dd314cd724cfb508eecce4024 (diff) | |
download | mpv-f47114f9324212ea0c04c55b3d7b9fa6852fdd50.tar.bz2 mpv-f47114f9324212ea0c04c55b3d7b9fa6852fdd50.tar.xz |
Make seek command parameter float.
Patch by Oded Shimon [ods15 at ods15 dot dyndns dot org].
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14719 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | input/input.c | 2 | ||||
-rw-r--r-- | mplayer.c | 5 |
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 @@ -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; |