Skip to content

Commit f50ccdf

Browse files
committed
Clarify capture processing handling in processCompletedRequest() method
1 parent 51c6e17 commit f50ccdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libcameracamera.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ void LibCameraWorker::processCompletedRequest(Request *request)
362362
if (mCaptureInProgress) {
363363
mCaptureInProgress = false;
364364
return; // Ignore preview processing during capture
365+
// Capture processing handled separately by blocking captureImage threaded function.
365366
}
366367

367368
if (!request || request->buffers().empty()) return;
@@ -371,7 +372,7 @@ void LibCameraWorker::processCompletedRequest(Request *request)
371372
// Convert buffer to QImage and emit preview
372373
QImage preview = convertBufferToImage(buffers);
373374

374-
if (!preview.isNull())
375+
if (!preview.isNull()) mCaptureInProgress = false;
375376
Q_EMIT frameReady(preview);
376377

377378
auto it = std::find_if(mPendingRequests.begin(), mPendingRequests.end(),

0 commit comments

Comments
 (0)