comparison 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
comparison
equal deleted inserted replaced
14717:51a7560a92b7 14718:11376fd550ac
2748 mp_cmd_t* cmd; 2748 mp_cmd_t* cmd;
2749 int brk_cmd = 0; 2749 int brk_cmd = 0;
2750 while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) { 2750 while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) {
2751 switch(cmd->id) { 2751 switch(cmd->id) {
2752 case MP_CMD_SEEK : { 2752 case MP_CMD_SEEK : {
2753 int v,abs; 2753 float v;
2754 int abs;
2754 osd_show_percentage = 25; 2755 osd_show_percentage = 25;
2755 v = cmd->args[0].v.i; 2756 v = cmd->args[0].v.f;
2756 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; 2757 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
2757 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ 2758 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
2758 abs_seek_pos = 1; 2759 abs_seek_pos = 1;
2759 if(sh_video) 2760 if(sh_video)
2760 osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; 2761 osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;