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
1 changed files with 1 additions and 0 deletions

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)