summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-18 05:32:45 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-18 05:32:45 +0000
commit730a647a2a30126d2a81e8adfce3e0b36ec8ef2d (patch)
tree7eeb99bb332e841e87860d2e144b88eb5081cdf7 /mplayer.c
parent5bcba9c99d89e92e7f1e9befa861e84377998c8b (diff)
downloadmpv-730a647a2a30126d2a81e8adfce3e0b36ec8ef2d.tar.bz2
mpv-730a647a2a30126d2a81e8adfce3e0b36ec8ef2d.tar.xz
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
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mplayer.c b/mplayer.c
index ba8c1bba83..075201ead4 100644
--- a/mplayer.c
+++ b/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;
}