Skip to content

Commit dd3a608

Browse files
committed
Optimize away unnecssary overlay-removes
1 parent 5db7b5f commit dd3a608

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/patched_osc.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,7 @@ function render()
22712271
render_message(ass)
22722272

22732273
-- mpv_thumbnail_script.lua --
2274+
local thumb_was_visible = osc_thumb_state.visible
22742275
osc_thumb_state.visible = false
22752276
-- // mpv_thumbnail_script.lua // --
22762277

@@ -2280,7 +2281,7 @@ function render()
22802281
end
22812282

22822283
-- mpv_thumbnail_script.lua --
2283-
if not osc_thumb_state.visible then
2284+
if not osc_thumb_state.visible and thumb_was_visible then
22842285
hide_thumbnail()
22852286
end
22862287
-- // mpv_thumbnail_script.lua // --

0 commit comments

Comments
 (0)