From 3eaa370e35c63c4e49959b03422d37053b2f0810 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 19 Dec 2019 09:20:49 -0800 Subject: [PATCH] audioflinger: fix missing EffectBase member init Fix missing initialization of EffectBase::mSuspend introduced by commit 41709559. Bug: 136294538 Test: make Change-Id: I20de7712ff3701649c78da4e6172e58af3f1f625 Merged-In: I20de7712ff3701649c78da4e6172e58af3f1f625 --- services/audioflinger/Effects.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/audioflinger/Effects.h b/services/audioflinger/Effects.h index 2802e6c95e..ea51c2c267 100644 --- a/services/audioflinger/Effects.h +++ b/services/audioflinger/Effects.h @@ -174,7 +174,8 @@ mutable Mutex mLock; // mutex for process, commands and han const audio_session_t mSessionId; // audio session ID const effect_descriptor_t mDescriptor;// effect descriptor received from effect engine effect_state mState = IDLE; // current activation state - bool mSuspended; // effect is suspended: temporarily disabled by framework + // effect is suspended: temporarily disabled by framework + bool mSuspended = false; Vector mHandles; // list of client handles // First handle in mHandles has highest priority and controls the effect module