Skip to content

Commit

Permalink
Render on cache updates
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
christoph-heinrich authored and tomasklaen committed Jul 12, 2022
1 parent 945594b commit 2fb7e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uosc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fb7e53

Please # to comment.