Commit d78e0716 authored by Yoann Lopes's avatar Yoann Lopes
Browse files

Android: don't process capture previews when capture is canceled


Change-Id: Ia068b0fcc30412755639412ec03e49c740b66bed
Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
Showing with 3 additions and 0 deletions
......@@ -576,6 +576,9 @@ void QAndroidCameraSession::onCameraPictureExposed()
void QAndroidCameraSession::onLastPreviewFrameFetched(const QVideoFrame &frame)
{
if (m_captureCanceled)
return;
QtConcurrent::run(this, &QAndroidCameraSession::processPreviewImage,
m_currentImageCaptureId,
frame,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment