mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 15:11:58 +00:00
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.
This commit is contained in:
parent
5a99015acf
commit
9efdb0368e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user