From 3fe547c387b8a5fd8d90f76614e801d4c38bfcde Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 14 Aug 2015 09:22:45 +0300 Subject: [PATCH] v4l2ctl: fixed resolution listing --- src/v4l2ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v4l2ctl.py b/src/v4l2ctl.py index 08dab1a..10637f4 100644 --- a/src/v4l2ctl.py +++ b/src/v4l2ctl.py @@ -181,7 +181,7 @@ def list_resolutions(device): logging.debug('no resolutions found for device %(device)s, using common values' % {'device': device}) # no resolution returned by v4l2-ctl call, add common default resolutions - resolutions += utils.COMMON_RESOLUTIONS + resolutions = utils.COMMON_RESOLUTIONS resolutions = list(sorted(resolutions, key=lambda r: (r[0], r[1]))) _resolutions_cache[device] = resolutions -- 2.39.5