0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

player: don't wait forever with --cache-pause-below behavior

Commit dc00b146, which disables polling by default, missed another
instance of polling: when the player pauses automatically on low cache.

This could lead to apparent freezes when playing network streams.
This commit is contained in:
wm4 2014-07-20 00:16:37 +02:00
parent b0ff0527a3
commit 1313d38efb

View File

@ -625,6 +625,7 @@ static void handle_pause_on_low_cache(struct MPContext *mpctx)
if (!opts->pause)
unpause_player(mpctx);
}
mpctx->sleeptime = MPMIN(mpctx->sleeptime, 0.2);
} else {
if (cache_kb >= 0 && cache_kb <= opts->stream_cache_pause && !idle &&
opts->stream_cache_pause < opts->stream_cache_unpause)