mirror of https://github.com/mpv-player/mpv
parent
d68d4dd984
commit
549afdb9c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue