0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

osc: don't run update_margins() every frame

This is something recent that also caused per frame log spam, because it
tried to update the margins every frame.
This commit is contained in:
wm4 2019-12-19 12:53:37 +01:00
parent 3ed96cca88
commit c4ae7d8203

View File

@ -2131,9 +2131,11 @@ function hide_osc()
end
function osc_visible(visible)
state.osc_visible = visible
if state.osc_visible ~= visible then
state.osc_visible = visible
update_margins()
end
request_tick()
update_margins()
end
function pause_state(name, enabled)