diff options
author | wm4 <wm4@nowhere> | 2019-12-22 12:32:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-22 12:32:50 +0100 |
commit | 12843dcea10f2b474aa7ffdee007999caad77762 (patch) | |
tree | 6d258145a658610e39079ed0de4a435e285cd029 /player/lua/osc.lua | |
parent | 00af718a9e47a6c7a48f821a93f788c22bdd41a7 (diff) | |
download | mpv-12843dcea10f2b474aa7ffdee007999caad77762.tar.bz2 mpv-12843dcea10f2b474aa7ffdee007999caad77762.tar.xz |
osc: full reinit on runtime option changes
Fuck it, just let's just reinit everything.
On a side note, the changelist parameter provided by read_options()
(here "list") is now unused. But it's not hard to provide and might be
useful for other stuff. So don't remove it from the generic
read_options() code.
Diffstat (limited to 'player/lua/osc.lua')
-rw-r--r-- | player/lua/osc.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua index cbec832aab..8c2d93b635 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1642,9 +1642,8 @@ end function update_options(list) validate_user_opts() request_tick() - if list["visibility"] then - visibility_mode(user_opts.visibility, true) - end + visibility_mode(user_opts.visibility, true) + request_init() end -- OSC INIT |