mirror of https://github.com/mpv-player/mpv
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:
parent
b0ff0527a3
commit
1313d38efb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue