From c865ce945517112e38e030e596bffeebaa0f9bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 25 Aug 2023 19:34:11 +0200 Subject: [PATCH] stats.lua: display --video-crop values when used --- player/lua/stats.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index acb67abfe0..0c6c2e2240 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -693,6 +693,10 @@ local function append_resolution(s, r, prefix, w_prop, h_prop) indent=" ", prefix_sep="", no_prefix_markup=true}) end + if r["crop-w"] and r["crop-w"] > 0 then + append(s, format("[x: %d, y: %d, w: %d, h: %d]", r["crop-x"], r["crop-y"], r["crop-w"], + r["crop-h"]), {prefix=", ", nl="", indent="", no_prefix_markup=true}) + end end end