From f86ea6c8c1485b91c98340232efc7d7f2e98262a Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 9 Mar 2025 22:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=8B=8D=E7=85=A7=E5=90=8E?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E4=B8=80=E6=AE=B5=E6=97=B6=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9Dsession=E5=81=9C=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/camera2/ndkcamera.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/cpp/camera2/ndkcamera.cpp b/app/src/main/cpp/camera2/ndkcamera.cpp index a5d250f0..4ddfc9b9 100644 --- a/app/src/main/cpp/camera2/ndkcamera.cpp +++ b/app/src/main/cpp/camera2/ndkcamera.cpp @@ -1192,6 +1192,7 @@ void NdkCamera::close() { // res = ACameraCaptureSession_stopRepeating(capture_session); ACameraCaptureSession_close(capture_session); + std::this_thread::sleep_for(std::chrono::milliseconds(512)); capture_session = 0; }