Mercurial > mplayer.hg
diff mplayer.c @ 14718:11376fd550ac
Make seek command parameter float.
Patch by Oded Shimon [ods15 at ods15 dot dyndns dot org].
author | reimar |
---|---|
date | Thu, 17 Feb 2005 15:56:25 +0000 |
parents | a4767edef10d |
children | 664b06b907cb |
line wrap: on
line diff
--- a/mplayer.c Thu Feb 17 15:35:44 2005 +0000 +++ b/mplayer.c Thu Feb 17 15:56:25 2005 +0000 @@ -2750,9 +2750,10 @@ 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;