diff options
author | Julian <MyFakeAcc.4@googlemail.com> | 2016-12-19 13:34:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-09 20:40:32 +0200 |
commit | c02d89fcd188791e2c921dbc90abab14fb1d8075 (patch) | |
tree | f18df0b506b6e4ddee6e4770f2d0176f7853237a /player/lua | |
parent | c4ea382894fa69c0bdbe7dfc71d597d96c94145a (diff) | |
download | mpv-c02d89fcd188791e2c921dbc90abab14fb1d8075.tar.bz2 mpv-c02d89fcd188791e2c921dbc90abab14fb1d8075.tar.xz |
stats: use container-fps together with fps (as fallback)
This was already done for the actual stats a few months ago.
Now it is also used by the perfdata coloring code.
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 336934c5c6..59612f0a7f 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -235,7 +235,9 @@ local function append_perfdata(s) end local ds = mp.get_property_bool("display-sync-active", false) - local target_fps = ds and mp.get_property_number("display-fps", 0) or mp.get_property_number("fps", 0) + local target_fps = ds and mp.get_property_number("display-fps", 0) + or mp.get_property_number("container-fps", 0) + or mp.get_property_number("fps", 0) if target_fps > 0 then target_fps = 1 / target_fps * 1e6 end local last_s = vo_p["render-last"] + vo_p["present-last"] + vo_p["upload-last"] |