From 4ee8d8d3f9511c37a905d37bfdd287eab14ed0cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 8 Jan 2014 19:13:41 +0100 Subject: 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. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3