diff options
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |