From fe5b042b7496d0c80f12f304dfade586ccc6dd2e Mon Sep 17 00:00:00 2001 From: "Ricardo Constantino (:RiCON)" Date: Wed, 4 May 2016 20:29:08 +0100 Subject: stats: add hwdec-current Fallback to hwdec-active if not available. This one will be removed in mpv 0.19.0. --- player/lua/stats.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'player') diff --git a/player/lua/stats.lua b/player/lua/stats.lua index dc0b6bdbd1..65cc41b99a 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -107,10 +107,15 @@ function add_video(s) end if append_property(s, sec, "video-codec", {prefix="Video:", nl="", indent=""}) then - append_property(s, sec, "hwdec-active", + if not append_property(s, sec, "hwdec-current", + {prefix="(hwdec:", nl="", indent=" ", + no_prefix_markup=true, suffix=")"}, + {no=true, [""]=true}) then + append_property(s, sec, "hwdec-active", {prefix="(hwdec)", nl="", indent=" ", no_prefix_markup=true, no_value=true}, {no=true}) + end end append_property(s, sec, "avsync", {prefix="A-V:"}) if append_property(s, sec, "drop-frame-count", {prefix="Dropped:"}) then -- cgit v1.2.3