summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/controls.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-14 00:33:03 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-15 22:33:30 +0300
commit7bb4d7144c3e7c469310d4fd473653fb6cbfc1b8 (patch)
treee63b8428faa1f63d63b920a5adb66cfb0f5df9fa /test/v4l2_videodevice/controls.cpp
parent6d2411fcb7483c7fee98824cafd1fabac3d75071 (diff)
test: v4l2_videodevice: controls: Use correct control range in check
A value check on the V4L2_CID_CONTRAST control is using the brightness control range. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/v4l2_videodevice/controls.cpp')
-rw-r--r--test/v4l2_videodevice/controls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/v4l2_videodevice/controls.cpp b/test/v4l2_videodevice/controls.cpp
index e59387ab..3add6e67 100644
--- a/test/v4l2_videodevice/controls.cpp
+++ b/test/v4l2_videodevice/controls.cpp
@@ -87,7 +87,7 @@ protected:
}
if (ctrls.get(V4L2_CID_BRIGHTNESS) != brightness.range().min() ||
- ctrls.get(V4L2_CID_CONTRAST) != brightness.range().max() ||
+ ctrls.get(V4L2_CID_CONTRAST) != contrast.range().max() ||
ctrls.get(V4L2_CID_SATURATION) != saturation.range().min().get<int32_t>() + 1) {
cerr << "Controls not updated when set" << endl;
return TestFail;