From 0448979ab093bd725893b9ab66acca1fd59c5e6c Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 18 Jan 2014 20:16:53 +0200 Subject: [PATCH] exit status from grep when listing video formats is now ignored --- src/v4l2ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v4l2ctl.py b/src/v4l2ctl.py index 505579e..1412ce9 100644 --- a/src/v4l2ctl.py +++ b/src/v4l2ctl.py @@ -71,7 +71,7 @@ def list_resolutions(device): logging.debug('listing resolutions of device %(device)s...' % {'device': device}) resolutions = set() - output = subprocess.check_output('v4l2-ctl -d %(device)s --list-formats-ext | grep -oE "[0-9]+x[0-9]+"' % { + output = subprocess.check_output('v4l2-ctl -d %(device)s --list-formats-ext | grep -oE "[0-9]+x[0-9]+" || true' % { 'device': device}, shell=True) for pair in output.split('\n'): -- 2.39.5