The first valid settings should be saved

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Feb 21 14:13:52 CET 2024


Hi Hui,

Thank you for the patch.

On Wed, Feb 21, 2024 at 01:38:00PM +0800, hui fang wrote:
> The first valid settings should be saved, or will be deferred to the next frame.

This is missing a Signed-off-by tag, and the subject is missing a
prefix. Both issues should have been caught by the checkstyle.py
utility part of libcamera.

Please see https://libcamera.org/contributing.html#submitting-patches
for more information about Signed-off-by, and
https://libcamera.org/coding-style.html#tools for more information about
the coding style and checkstyle.py utility.

> diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
> index 25cedd44..d45ed1a5 100644
> --- a/src/android/camera_device.cpp
> +++ b/src/android/camera_device.cpp
> @@ -952,8 +952,8 @@ int CameraDevice::processCaptureRequest(camera3_capture_request_t *camera3Reques
>          */
>         if (camera3Request->settings)
>                 lastSettings_ = camera3Request->settings;
> -       else
> -               descriptor->settings_ = lastSettings_;
> +
> +       descriptor->settings_ = lastSettings_;

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list