Skip to content

Commit

Permalink
cam_kms: Don't print kms adjustment if no adjustment was done
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Nov 25, 2024
1 parent 6dbdf32 commit faa6bbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/cam_kms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit faa6bbe

Please sign in to comment.