commit | 0a05c59b9a1f5954eaa513024647e51e423cce11 | [log] [tgz] |
---|---|---|
author | David Li <dvdli@google.com> | Thu Dec 14 15:16:56 2023 +0800 |
committer | David Li <dvdli@google.com> | Thu Dec 14 15:16:56 2023 +0800 |
tree | 91a1d48e58f34be5ea65e4703d655ed03f7182a0 | |
parent | 3c1762c74f69f6099e23b653db48e91995568679 [diff] [blame] |
AIDL effect: Stop subeffects before closing Bug: 303004264 Test: manual test Change-Id: If2f3d4c8deeaeb83ab84d33251ba253a1560d51c
diff --git a/media/libaudiohal/impl/EffectProxy.cpp b/media/libaudiohal/impl/EffectProxy.cpp index aee42a9..182d68a 100644 --- a/media/libaudiohal/impl/EffectProxy.cpp +++ b/media/libaudiohal/impl/EffectProxy.cpp
@@ -131,6 +131,7 @@ } ndk::ScopedAStatus EffectProxy::close() { + command(CommandId::STOP); return runWithAllSubEffects([&](std::shared_ptr<IEffect>& effect) { return effect->close(); });