From e894f75bb570e20966d64607aa69d64ba9022bd8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 3 Jan 2018 21:50:04 +0100 Subject: player: cosmetics: rename internal variable for consistency This was so annoying. --- player/playloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index e9d9112588..1184e94ad9 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -618,7 +618,7 @@ static void handle_pause_on_low_cache(struct MPContext *mpctx) if (mpctx->restart_complete && use_pause_on_low_cache) { if (mpctx->paused && mpctx->paused_for_cache) { - if (!s.underrun && (!opts->cache_pausing || s.idle || + if (!s.underrun && (!opts->cache_pause || s.idle || s.ts_duration >= opts->cache_pause_wait)) { mpctx->paused_for_cache = false; @@ -627,7 +627,7 @@ static void handle_pause_on_low_cache(struct MPContext *mpctx) } mp_set_timeout(mpctx, 0.2); } else { - if (opts->cache_pausing && s.underrun) { + if (opts->cache_pause && s.underrun) { mpctx->paused_for_cache = true; update_internal_pause_state(mpctx); mpctx->cache_stop_time = now; -- cgit v1.2.3