From e8c0443a42af1bb89db60a3d5546df1276f3c88f Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 9 Jan 2024 16:32:10 +0200 Subject: [PATCH] cam: cleanup --- utils/cam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cam.py b/utils/cam.py index 5277104..0d9f58c 100755 --- a/utils/cam.py +++ b/utils/cam.py @@ -118,7 +118,7 @@ # XXX stream['kms-fourcc'] = stream['fourcc'] - if args.type == 'drm' and 'embedded' in stream and stream['embedded']: + if args.type == 'drm' and stream.get('embedded', False): divs = [16, 8, 4, 2, 1] for div in divs: w = stream['kms-buf-w'] // div