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

Commit f9abbf26 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Camera: Make finalizeOutputConfigurations more resilient" into oc-dev

parents 4bba89e4 a81ce34c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1269,6 +1269,13 @@ binder::Status CameraDeviceClient::finalizeOutputConfigurations(int32_t streamId
        surfaceId++;
    }

    // Gracefully handle case where finalizeOutputConfigurations is called
    // without any new surface.
    if (consumerSurfaces.size() == 0) {
        mStreamInfoMap[streamId].finalized = true;
        return res;
    }

    // Finish the deferred stream configuration with the surface.
    status_t err;
    err = mDevice->setConsumerSurfaces(streamId, consumerSurfaces);