[MPlayer-cvslog] CVS: main mplayer.c,1.832,1.833

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Feb 17 16:56:27 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv8053

Modified Files:
	mplayer.c 
Log Message:
Make seek command parameter float.
Patch by Oded Shimon [ods15 at ods15 dot dyndns dot org].


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.832
retrieving revision 1.833
diff -u -r1.832 -r1.833
--- mplayer.c	12 Feb 2005 14:45:54 -0000	1.832
+++ mplayer.c	17 Feb 2005 15:56:25 -0000	1.833
@@ -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;




More information about the MPlayer-cvslog mailing list