mirror of https://github.com/mpv-player/mpv
Remove an unnecessary #ifdef
The default version of the sleep timer no longer has the code which required adding a different #ifdef SYS_DARWIN version, so remove the Darwin implementation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24090 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5bcba9c99d
commit
730a647a2a
10
mplayer.c
10
mplayer.c
|
@ -1652,15 +1652,6 @@ static float timing_sleep(float time_frame)
|
|||
}
|
||||
} else
|
||||
#endif
|
||||
#ifdef SYS_DARWIN
|
||||
{
|
||||
current_module = "sleep_darwin";
|
||||
while (time_frame > 0.005) {
|
||||
usec_sleep(1000000*time_frame);
|
||||
time_frame -= GetRelativeTime();
|
||||
}
|
||||
}
|
||||
#else
|
||||
{
|
||||
// assume kernel HZ=100 for softsleep, works with larger HZ but with
|
||||
// unnecessarily high CPU usage
|
||||
|
@ -1678,7 +1669,6 @@ static float timing_sleep(float time_frame)
|
|||
time_frame-=GetRelativeTime(); // burn the CPU
|
||||
}
|
||||
}
|
||||
#endif /* SYS_DARWIN */
|
||||
return time_frame;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue