diff options
author | wm4 <wm4@nowhere> | 2019-11-14 13:51:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-14 13:51:47 +0100 |
commit | 9efdb0368eaed754f690dc61cb5d8592d3438830 (patch) | |
tree | 291e4ea989a5776e2c98a4c7185ba3893da94b74 | |
parent | 5a99015acf184a2989ea7ebf50ab2c990be41125 (diff) | |
download | mpv-9efdb0368eaed754f690dc61cb5d8592d3438830.tar.bz2 mpv-9efdb0368eaed754f690dc61cb5d8592d3438830.tar.xz |
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.
-rw-r--r-- | player/playloop.c | 3 |
1 files changed, 1 insertions, 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 |