1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

osc: display cache status only below 45%

Turnes out, when playing stuff over WiFi, the cache may go below 48%
quite frequently.
This commit is contained in:
ChrisK2 2013-10-26 11:09:06 +02:00
parent e02ec80192
commit c341edda35

View File

@ -1004,7 +1004,7 @@ function osc_init()
local cache = mp.property_get("cache")
if not (cache == nil) then
cache = tonumber(mp.property_get("cache"))
if (cache < 48) then
if (cache < 45) then
ass:append("Cache: " .. (cache) .."%")
end
end