diff options
author | Alain Volmat <alain.volmat@foss.st.com> | 2023-11-13 11:08:51 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-11-21 11:46:03 +0200 |
commit | 882d04d740eec4176d5639a30ac282b89ed49d10 (patch) | |
tree | c10eb706ca8f89fe6251e30e8e95df7c0a748880 /test/libtest | |
parent | 34b248c88f3ab67f47e64a6eab0a784e43f40488 (diff) |
libcamera: camera_sensor: Only access V4L_CID_HBLANK if existing
Correct a crash in CameraSensor::init() when trying to set the
V4L2_CID_HBLANK control on sensor not implementing this control. The
HBLANK sensor not being mandatory for non-RAW sensors, it can happen
that the sensor does not expose this control. Perform check against
availability of the control prior to usage in order to avoid the crash.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/libtest')
0 files changed, 0 insertions, 0 deletions