From 1313d38efb677ff1667333e1c1a3be9726efeb50 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Jul 2014 00:16:37 +0200 Subject: 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. --- player/playloop.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index c18c1cb5ce..0622fca72b 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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) -- cgit v1.2.3