From: Calin Crisan Date: Fri, 14 Aug 2015 06:22:45 +0000 (+0300) Subject: v4l2ctl: fixed resolution listing X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=3fe547c387b8a5fd8d90f76614e801d4c38bfcde;p=motioneye-debian v4l2ctl: fixed resolution listing --- 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