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

Commit 355ad01a authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioFlinger: update error handling moveEffectChain_l"

parents ef71e291 5c4dd0d1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4121,6 +4121,8 @@ status_t AudioFlinger::moveEffectChain_l(audio_session_t sessionId,
    size_t restored = 0;
    if (status != NO_ERROR) {
        for (const auto& effect : removed) {
            dstThread->removeEffect_l(effect); // Note: Depending on error location, the last
                                               // effect may not have been placed on dstThread.
            if (srcThread->addEffect_l(effect) == NO_ERROR) {
                ++restored;
            }