From 0b1ba0bf64771167fbc31e08fb5853504390f03f 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(-) (limited to 'player/playloop.c') 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 -- cgit v1.2.3