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

Commit 2d05e23d authored by Emilian Peev's avatar Emilian Peev Committed by android-build-merger
Browse files

Merge "Camera: Check consumer interface before disconnecting" am: aa59be48 am: a4f8c20b

am: 1960c88b

Change-Id: I18f80217287d0c23846cc052dce768e7723518c4
parents cb4aa3aa 1960c88b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -139,7 +139,9 @@ void Camera3StreamSplitter::disconnect() {
    mOutputSlots.clear();
    mConsumerBufferCount.clear();

    if (mConsumer.get() != nullptr) {
        mConsumer->consumerDisconnect();
    }

    if (mBuffers.size() > 0) {
        SP_LOGW("%zu buffers still being tracked", mBuffers.size());