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

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

Merge "Camera: Release all composite streams during "detachDevice"" into qt-qpr1-dev am: f16f2136

am: 01510dc5

Change-Id: Id88dc89d3cf99266e34211aa72b4e99bb259c40d
parents 89f39946 01510dc5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2004,6 +2004,15 @@ void CameraDeviceClient::detachDevice() {
        }
    }

    for (size_t i = 0; i < mCompositeStreamMap.size(); i++) {
        auto ret = mCompositeStreamMap.valueAt(i)->deleteInternalStreams();
        if (ret != OK) {
            ALOGE("%s: Failed removing composite stream  %s (%d)", __FUNCTION__,
                    strerror(-ret), ret);
        }
    }
    mCompositeStreamMap.clear();

    Camera2ClientBase::detachDevice();
}