[Mplayer-cvslog] CVS: main/osdep timer-darwin.c,1.2,1.3
Alex Beregszaszi
alex at mplayerhq.hu
Wed Jan 28 11:40:32 CET 2004
Update of /cvsroot/mplayer/main/osdep
In directory mail:/var2/tmp/cvs-serv7497
Modified Files:
timer-darwin.c
Log Message:
disable buggy code, patch by Romain Dolbeau
Index: timer-darwin.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/timer-darwin.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- timer-darwin.c 3 Aug 2003 18:28:28 -0000 1.2
+++ timer-darwin.c 28 Jan 2004 10:40:29 -0000 1.3
@@ -74,6 +74,7 @@
/* sleep usec_delay microseconds */
int usec_sleep(int usec_delay)
{
+#if 0
mach_timespec_t start_time, end_time;
clock_get_time(clock_port, &start_time);
@@ -86,6 +87,9 @@
clock_get_time(clock_port, &end_time);
return usec_delay - udiff_time(start_time, end_time);
+#else
+ usleep(usec_delay);
+#endif
}
More information about the MPlayer-cvslog
mailing list