From faa6bbea9b023caa12fa8d0bf8d4f2bc53b70d8e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 8 Nov 2024 11:28:46 +0200 Subject: [PATCH] cam_kms: Don't print kms adjustment if no adjustment was done --- utils/cam_kms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/cam_kms.py b/utils/cam_kms.py index 74805b8..159f887 100644 --- a/utils/cam_kms.py +++ b/utils/cam_kms.py @@ -80,7 +80,8 @@ def __init__(self, ctx) -> None: else: raise RuntimeError('Unable to adjust formats') - print(f'Adjusted kms width from {kms_w} to {stream['kms-buf-w']}') + if kms_w != stream['kms-buf-w']: + print(f'Adjusted kms width from {kms_w} to {stream['kms-buf-w']}') if ctx.buf_type == 'drm' and stream.get('embedded', False): divs = [16, 8, 4, 2, 1]