diff options
author | Ricardo Constantino (:RiCON) <wiiaboo@gmail.com> | 2016-05-04 20:29:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-09 20:40:31 +0200 |
commit | fe5b042b7496d0c80f12f304dfade586ccc6dd2e (patch) | |
tree | 0bb38bbb9bcb807e1a9c41f25886c24777da734d /player/lua | |
parent | 7c261899cfb7929c2a5c6ab6d944fde29d528314 (diff) | |
download | mpv-fe5b042b7496d0c80f12f304dfade586ccc6dd2e.tar.bz2 mpv-fe5b042b7496d0c80f12f304dfade586ccc6dd2e.tar.xz |
stats: add hwdec-current
Fallback to hwdec-active if not available. This one will be removed in
mpv 0.19.0.
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |