summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/lua/osc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 632d50d969..4a41806217 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -920,11 +920,11 @@ function osc_init()
local eventresponder = {}
local contentF = function (ass)
- local cache = mp.get_property("cache")
+ local cache = mp.get_property_osd("cache")
if not (cache == nil) then
- cache = tonumber(mp.get_property("cache"))
+ cache = tonumber(cache)
if (cache < 45) then
- ass:append("Cache: " .. (cache) .."%")
+ ass:append("Cache: " .. (math.floor(cache)) .."%")
end
end
end