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

Commit 005d7c51 authored by Shunkai Yao's avatar Shunkai Yao Committed by Automerger Merge Worker
Browse files

Merge "Fix the error with EffectProxy open" am: 151890f5

parents 0f96b2b3 151890f5
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -158,8 +158,7 @@ ndk::ScopedAStatus EffectProxy::open(const Parameter::Common& common,
    for (auto& sub : mSubEffects) {
    for (auto& sub : mSubEffects) {
        auto& effect = std::get<SubEffectTupleIndex::HANDLE>(sub.second);
        auto& effect = std::get<SubEffectTupleIndex::HANDLE>(sub.second);
        auto& openRet = std::get<SubEffectTupleIndex::RETURN>(sub.second);
        auto& openRet = std::get<SubEffectTupleIndex::RETURN>(sub.second);
        if (!effect ||
        if (!effect || !(status = effect->open(common, specific, &openRet)).isOk()) {
            (status = effect->open(common, specific, &openRet)).isOk()) {
            ALOGE("%s: failed to open UUID %s", __func__, sub.first.uuid.toString().c_str());
            ALOGE("%s: failed to open UUID %s", __func__, sub.first.uuid.toString().c_str());
            break;
            break;
        }
        }