diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-01 13:25:46 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-10-14 12:30:46 +0200 |
commit | 52fc3784942d572a790acf59144977160ac685ed (patch) | |
tree | 37c2c98dbd1d7b3ef28f41c43ad5a6f34f69f669 /player | |
parent | e5446399e14656ab1fedebe88cad38d5078fe172 (diff) | |
download | mpv-52fc3784942d572a790acf59144977160ac685ed.tar.bz2 mpv-52fc3784942d572a790acf59144977160ac685ed.tar.xz |
stats.lua: don't print custom pixel format, when hwdec
There is already other place to indicate hw decoding. "cuda" or "d3d11"
is not a pixel format.
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/stats.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index ef888115d2..6fd24f96f2 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -816,11 +816,8 @@ local function append_img_params(s, r, ro) local indent = o.prefix_sep .. o.prefix_sep - append(s, r["pixelformat"], {prefix="Pixel Format:"}) - if r["hw-pixelformat"] ~= nil then - append(s, r["hw-pixelformat"], {prefix_sep="[", nl="", indent=" ", - suffix="]"}) - end + local pixel_format = r["hw-pixelformat"] or r["pixelformat"] + append(s, pixel_format, {prefix="Pixel Format:"}) append(s, r["colorlevels"], {prefix="Levels:", nl="", indent=indent}) -- Group these together to save vertical space |