summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/lua/osc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 2de4c554b1..cf6ce3449e 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -932,7 +932,7 @@ function osc_init()
end
local posF = function ()
- if mp.property_get("length") == nil then
+ if mp.property_get("percent-pos") == nil then
return nil
else
return tonumber(mp.property_get("percent-pos"))
@@ -952,7 +952,7 @@ function osc_init()
local metainfo = {}
- metainfo.enabled = (not (mp.property_get("length") == nil)) and (tonumber(mp.property_get("length")) > 0)
+ metainfo.enabled = not (mp.property_get("percent-pos") == nil)
metainfo.styledown = false
metainfo.slider = {}
metainfo.slider.border = 1