summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-08 19:13:41 +0100
committerwm4 <wm4@nowhere>2014-01-08 19:16:30 +0100
commit0b1ba0bf64771167fbc31e08fb5853504390f03f (patch)
tree88b6801bbab7377a1be17800afd120bbaaf945fe /player
parentcbc344236cae2b0b8412e44300393c9d35a9c624 (diff)
downloadmpv-0b1ba0bf64771167fbc31e08fb5853504390f03f.tar.bz2
mpv-0b1ba0bf64771167fbc31e08fb5853504390f03f.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.
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 32984fb570..b00401f088 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