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

Commit 8b5c6740 authored by Shunkai Yao's avatar Shunkai Yao
Browse files

Fix the error with EffectProxy open

Bug: 261129656
Test: Enable AIDL and test with Pixel
Change-Id: Ic1435a857cc336a01934e5cc21938892e1df2fef
parent df5c0f59
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -158,8 +158,7 @@ ndk::ScopedAStatus EffectProxy::open(const Parameter::Common& common,
    for (auto& sub : mSubEffects) {
        auto& effect = std::get<SubEffectTupleIndex::HANDLE>(sub.second);
        auto& openRet = std::get<SubEffectTupleIndex::RETURN>(sub.second);
        if (!effect ||
            (status = effect->open(common, specific, &openRet)).isOk()) {
        if (!effect || !(status = effect->open(common, specific, &openRet)).isOk()) {
            ALOGE("%s: failed to open UUID %s", __func__, sub.first.uuid.toString().c_str());
            break;
        }