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

Commit 1960c88b 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

Change-Id: I691c6c369db7b6334a54dbe98b61711b8185e1cb
parents f2bb7b0c a4f8c20b
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());