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.
This commit is contained in:
wm4 2014-01-08 19:13:41 +01:00
parent cbc344236c
commit 0b1ba0bf64
1 changed files with 1 additions and 1 deletions

View File

@ -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