mirror of https://github.com/mpv-player/mpv
disable buggy code, patch by Romain Dolbeau
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11868 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4aeb0a76c9
commit
780880f6e4
|
@ -74,6 +74,7 @@ static mach_port_t clock_port;
|
|||
/* 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 @@ int usec_sleep(int usec_delay)
|
|||
clock_get_time(clock_port, &end_time);
|
||||
|
||||
return usec_delay - udiff_time(start_time, end_time);
|
||||
#else
|
||||
usleep(usec_delay);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue