Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acbeab01 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Fix potentail race condition" into rvc-dev am: 17f95108 am:...

Merge "Camera: Fix potentail race condition" into rvc-dev am: 17f95108 am: 1dfdf2a6 am: 450ac5f9 am: 4e6e1994

Change-Id: I11cc4fe71c0208b0c0d3c2fce5563d5c2a371213
parents 45c56818 4e6e1994
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -259,14 +259,16 @@ void sendCaptureResult(
    }

    // Fix up some result metadata to account for HAL-level distortion correction
    status_t res =
            states.distortionMappers[states.cameraId.c_str()].correctCaptureResult(
                    &captureResult.mMetadata);
    status_t res = OK;
    auto iter = states.distortionMappers.find(states.cameraId.c_str());
    if (iter != states.distortionMappers.end()) {
        res = iter->second.correctCaptureResult(&captureResult.mMetadata);
        if (res != OK) {
            SET_ERR("Unable to correct capture result metadata for frame %d: %s (%d)",
                    frameNumber, strerror(-res), res);
            return;
        }
    }

    // Fix up result metadata to account for zoom ratio availabilities between
    // HAL and app.