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.
This commit is contained in:
Christoph Heinrich
2022-07-12 03:50:43 +02:00
committed by Tomas Klaen
parent 945594b702
commit 2fb7e5348d

View File

@@ -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