From 8cd15dab19c2aa1a689a8911380e0e4d687a9c8d Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 21 Jul 2024 09:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/camera2/ndkcamera.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/cpp/camera2/ndkcamera.cpp b/app/src/main/cpp/camera2/ndkcamera.cpp index 14a55359..8047fa8c 100644 --- a/app/src/main/cpp/camera2/ndkcamera.cpp +++ b/app/src/main/cpp/camera2/ndkcamera.cpp @@ -1261,6 +1261,10 @@ void NdkCamera::onCaptureCompleted(ACameraCaptureSession* session, ACaptureReque numberOfPrecaptures = 0; } } + else + { + numberOfPrecaptures = 0; + } if (mResult.aeState == ACAMERA_CONTROL_AE_STATE_PRECAPTURE) { uint8_t aePrecatureTrigger = ACAMERA_CONTROL_AE_PRECAPTURE_TRIGGER_START;