mirror of https://github.com/mpv-player/mpv
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:
parent
cbc344236c
commit
0b1ba0bf64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue