[Mplayer-cvslog] CVS: main/osdep timer-darwin.c,1.4,1.5

Nicolas Plourde CVS syncmail at mplayerhq.hu
Mon Oct 25 16:00:05 CEST 2004


CVS change done by Nicolas Plourde CVS

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

Modified Files:
	timer-darwin.c 
Log Message:
mplayer hang if mach_wait_until is called with a negative deadline value

Index: timer-darwin.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/timer-darwin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- timer-darwin.c	4 Aug 2004 15:48:43 -0000	1.4
+++ timer-darwin.c	25 Oct 2004 14:00:03 -0000	1.5
@@ -37,6 +37,7 @@
 {
   uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time();
 
+  if(deadline < 0)
   mach_wait_until(deadline);
 
   return (mach_absolute_time() - deadline) * timebase_ratio;




More information about the MPlayer-cvslog mailing list