summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-21 11:23:48 -0500
committerDudemanguy <random342@airmail.cc>2023-09-27 14:04:59 +0000
commitc0c595b588dc6f376016c4773d8f1bc34f934e9b (patch)
treeb0fb679321a8f0bf2768ac57f23a97f7b48b588a
parent3a2ebd616ba00ebcd89e606cb6962c062c7ecb9f (diff)
downloadmpv-c0c595b588dc6f376016c4773d8f1bc34f934e9b.tar.bz2
mpv-c0c595b588dc6f376016c4773d8f1bc34f934e9b.tar.xz
osc: remove shared-script-properties usage
0b4860248b3395b32a89908efd34fdef12f4906e added user-data which is completely superior and makes this property obsolete. We've already had one mpv release with the osc using user-data so drop this.
-rw-r--r--player/lua/osc.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 1bfe82d9bb..d5aa736de7 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2206,14 +2206,11 @@ function update_margins()
reset_margins()
end
- utils.shared_script_property_set("osc-margins",
- string.format("%f,%f,%f,%f", margins.l, margins.r, margins.t, margins.b))
mp.set_property_native("user-data/osc/margins", margins)
end
function shutdown()
reset_margins()
- utils.shared_script_property_set("osc-margins", nil)
mp.del_property("user-data/osc")
end
@@ -2870,7 +2867,6 @@ function visibility_mode(mode, no_osd)
end
user_opts.visibility = mode
- utils.shared_script_property_set("osc-visibility", mode)
mp.set_property_native("user-data/osc/visibility", mode)
if not no_osd and tonumber(mp.get_property("osd-level")) >= 1 then
@@ -2903,7 +2899,6 @@ function idlescreen_visibility(mode, no_osd)
user_opts.idlescreen = false
end
- utils.shared_script_property_set("osc-idlescreen", mode)
mp.set_property_native("user-data/osc/idlescreen", user_opts.idlescreen)
if not no_osd and tonumber(mp.get_property("osd-level")) >= 1 then