From c02d89fcd188791e2c921dbc90abab14fb1d8075 Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 19 Dec 2016 13:34:21 +0100 Subject: 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. --- player/lua/stats.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"] -- cgit v1.2.3