[Mplayer-cvslog] CVS: main mplayer.c,1.478,1.479

Alban Bedel CVS albeu at mplayerhq.hu
Tue Apr 23 15:27:09 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv11861

Modified Files:
	mplayer.c 
Log Message:
Fix audio only absolute seeking


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.478
retrieving revision 1.479
diff -u -r1.478 -r1.479
--- mplayer.c	23 Apr 2002 13:07:58 -0000	1.478
+++ mplayer.c	23 Apr 2002 13:26:56 -0000	1.479
@@ -2218,8 +2218,9 @@
       abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
       if(abs) {
 	abs_seek_pos = 3;
-	osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
-	rel_seek_secs = v;
+	if(sh_video)
+	  osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
+	rel_seek_secs = v/100.0;
       }
       else {
 	rel_seek_secs+= v;




More information about the MPlayer-cvslog mailing list