The first valid settings should be saved

hui fang biomifang118 at gmail.com
Wed Feb 21 06:38:00 CET 2024


The first valid settings should be saved, or will be deferred to the next frame.

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_;



BRs,

FangHui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240221/cc448c87/attachment.htm>


More information about the libcamera-devel mailing list