From 9efdb0368eaed754f690dc61cb5d8592d3438830 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 Nov 2019 13:51:47 +0100 Subject: player: enable "pause caching" code for local playback too There isn't really a need to disable this for local playback. I think originally I did this because I was afraid the code could mess up or be annoying on local mode, but that's not really a good argument. I'd rather test this code in local mode too. In this case, it shouldn't really happen that it runs out of cache in the first place. --- player/playloop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player/playloop.c b/player/playloop.c index 99069401de..03bb771ad9 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -691,8 +691,7 @@ static void handle_update_cache(struct MPContext *mpctx) mpctx->demux_underrun |= s.underrun; int cache_buffer = 100; - bool use_pause_on_low_cache = demux_is_network_cached(mpctx->demuxer) && - opts->cache_pause && mpctx->play_dir > 0; + bool use_pause_on_low_cache = opts->cache_pause && mpctx->play_dir > 0; if (!mpctx->restart_complete) { // Audio or video is restarting, and initial buffering is enabled. Make -- cgit v1.2.3