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

Commit 5b19084a authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "Camera3: Remove request from InFlightMap for error case"

parents 23700deb 1b05dfc8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1668,8 +1668,10 @@ void Camera3Device::processCaptureResult(const camera3_capture_result *result) {
            return;
        }

        // Check if everything has arrived for this result (buffers and metadata)
        if (request.haveResultMetadata && request.numBuffersLeft == 0) {
        // Check if everything has arrived for this result (buffers and metadata), remove it from
        // InFlightMap if both arrived or HAL reports error for this request (i.e. during flush).
        if ((request.requestStatus != OK) ||
                (request.haveResultMetadata && request.numBuffersLeft == 0)) {
            ATRACE_ASYNC_END("frame capture", frameNumber);
            mInFlightMap.removeItemsAt(idx, 1);
        }