summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-21 14:04:34 +0100
committerwm4 <wm4@nowhere>2020-03-21 19:32:50 +0100
commit9815887435e7cbf86e1567d9bd4726dcaec21308 (patch)
treef1e17765d0856cd13f6a0523f0e3249f217390c8 /player/lua
parent4a2fd2daf663ca4bd845466e924750213ceb1f46 (diff)
downloadmpv-9815887435e7cbf86e1567d9bd4726dcaec21308.tar.bz2
mpv-9815887435e7cbf86e1567d9bd4726dcaec21308.tar.xz
osc: avoid using a deprecated event
The new code is pretty much equivalent.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/osc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index e689e8aeb4..2c0375c7ed 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2578,7 +2578,7 @@ validate_user_opts()
mp.register_event("shutdown", shutdown)
mp.register_event("start-file", request_init)
-mp.register_event("tracks-changed", request_init)
+mp.observe_property("track-list", nil, request_init)
mp.observe_property("playlist", nil, request_init)
mp.register_script_message("osc-message", show_message)