From be13d2ebd0ee66e8c09d978107c14a4221b04dff Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 25 Sep 2012 16:52:22 -0700 Subject: audio policy: fix crash when closing HDMI output When a direct output is closed, the vector containing the previously opened outputs must also be updated. Bug 7157451. Change-Id: I575b1f4928cf7527a4a98632fdec7600664a1e1c --- audio/AudioPolicyManagerBase.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp index 9625491..4e0d60f 100644 --- a/audio/AudioPolicyManagerBase.cpp +++ b/audio/AudioPolicyManagerBase.cpp @@ -795,6 +795,7 @@ void AudioPolicyManagerBase::releaseOutput(audio_io_handle_t output) mpClientInterface->closeOutput(output); delete mOutputs.valueAt(index); mOutputs.removeItem(output); + mPreviousOutputs = mOutputs; } } -- cgit v1.1