1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 00:23:27 +00:00
mpv/player/lua
ossifrage c1568a3a6c osc: display immediately when visibility changes from never to always
Clearing state.osd.data with an empty string at render_wipe() fixes an
issue where changing the OSC visibility from "never" directly to
"always" didn't immediately update the display when the player was
paused. This could be verified by starting the player with
`--script-opts=osc-visibility=always --pause` and then running
`script-message osc-visibility never` followed by
`script-message osc-visibility always`.

Removing the overlay without changing the contents meant the overlay
wouldn't update and display when enabled again until the fields changed
in some way (e.g. seeking, mousing over the OSC area, etc.). Clearing
state.osd.data before removal of the OSC makes sure set_osd doesn't
return on re-enable and instead displays the OSC immediately as the data
is now different.

render_wipe() is now also used when the OSC needs to be cleared at
tick() as using set_osd to clear it with an empty string did not call
state.osd:remove() which can allow cleanups related to bitmap memory
allocations etc.
2021-04-25 19:24:46 +03:00
..
assdraw.lua
auto_profiles.lua auto_profiles: fix compile_cond on lua 5.1 2020-12-08 17:29:19 +00:00
console.lua console: use wl-paste on Wayland 2020-12-14 22:43:34 +00:00
defaults.lua lua/js: mp.get_mouse_pos: use the mouse-pos property 2020-11-16 20:29:58 +02:00
options.lua lua: windows got what users crave 2020-05-27 15:01:39 +02:00
osc.lua osc: display immediately when visibility changes from never to always 2021-04-25 19:24:46 +03:00
stats.lua stats.lua: include a filter's @label when displaying filters on page 1 2021-03-15 23:00:42 +02:00
ytdl_hook.lua ytdl_hook: fix crash on missing track bitrate 2021-03-08 14:01:34 +02:00