From 2fb7e5348df69984c037dd0d8ec57cffea059811 Mon Sep 17 00:00:00 2001 From: Christoph Heinrich Date: Tue, 12 Jul 2022 03:50:43 +0200 Subject: [PATCH] Render on cache updates The updated state of the cache was not visible when the player was paused and not interacted with. Now a render is requested on every cache update, which happens roughly two times per second for me. --- uosc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/uosc.lua b/uosc.lua index 2e3279c3..4e110bb4 100644 --- a/uosc.lua +++ b/uosc.lua @@ -3152,6 +3152,7 @@ mp.observe_property('demuxer-cache-state', 'native', function(prop, cache_state) end local cache_ranges = cache_state['seekable-ranges'] state.cached_ranges = #cache_ranges > 0 and cache_ranges or nil + request_render() end) -- CONTROLS