From c1af3f2e02e886d66f5b51627a1f7960db087237 Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 11 Apr 2026 20:00:27 -0500 Subject: [PATCH] mpv: revert cache_pause changes, keep larger demuxer buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cache_pause=yes change (ac3939e) broke first-click popout playback — mpv paused indefinitely waiting for cache fill on uncached videos. Reverted to cache_pause=no. Kept the demuxer_max_bytes bump (50→150MiB) which reduces stutter on network streams by giving mpv more buffer headroom without changing the pause/play behavior. behavior change --- booru_viewer/gui/media/_mpv_options.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/booru_viewer/gui/media/_mpv_options.py b/booru_viewer/gui/media/_mpv_options.py index a270171..274e0e2 100644 --- a/booru_viewer/gui/media/_mpv_options.py +++ b/booru_viewer/gui/media/_mpv_options.py @@ -77,15 +77,10 @@ def build_mpv_kwargs(is_windows: bool) -> dict[str, object]: "vd_lavc_fast": "yes", "vd_lavc_skiploopfilter": "nonkey", "cache": "yes", - "cache_pause": "yes", - "cache_pause_wait": "2", - "cache_secs": "30", + "cache_pause": "no", "demuxer_max_bytes": "150MiB", - "demuxer_max_back_bytes": "75MiB", "demuxer_readahead_secs": "20", - "stream_buffer_size": "4MiB", - "network_timeout": "30", - "user_agent": "Mozilla/5.0", + "network_timeout": "10", "ytdl": "no", "load_scripts": "no", }