summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-08 19:13:41 +0100
committerwm4 <wm4@nowhere>2014-01-15 20:50:02 +0100
commit4ee8d8d3f9511c37a905d37bfdd287eab14ed0cc (patch)
treef4b638de9fc08a638d115574af7a38626f87e8f1
parent574a2484c151fff55123c7ea19a22a351b5f3837 (diff)
downloadmpv-4ee8d8d3f9511c37a905d37bfdd287eab14ed0cc.tar.bz2
mpv-4ee8d8d3f9511c37a905d37bfdd287eab14ed0cc.tar.xz
player: fix setting smaller timeout on Windows systems
On Windows, we don't have proper input event wakeup handling, so we need to lower the playloop timeout in order to react fast to input. Closes #387.
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 6359803fcf..72bc539ee2 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -924,7 +924,7 @@ static double get_wakeup_period(struct MPContext *mpctx)
*/
double sleeptime = WAKEUP_PERIOD;
-#ifndef HAVE_POSIX_SELECT
+#if !HAVE_POSIX_SELECT
// No proper file descriptor event handling; keep waking up to poll input
sleeptime = MPMIN(sleeptime, 0.02);
#endif