summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-09-25 16:52:22 -0700
committerEric Laurent <elaurent@google.com>2012-09-25 16:52:22 -0700
commitbe13d2ebd0ee66e8c09d978107c14a4221b04dff (patch)
treecdb4e2554408c390fcc510b122dc49a7d42cc0f8
parentc0ab77364b0d5bfcf1003b80cddec14f70825371 (diff)
downloadhardware_libhardware_legacy-be13d2ebd0ee66e8c09d978107c14a4221b04dff.zip
hardware_libhardware_legacy-be13d2ebd0ee66e8c09d978107c14a4221b04dff.tar.gz
hardware_libhardware_legacy-be13d2ebd0ee66e8c09d978107c14a4221b04dff.tar.bz2
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
-rw-r--r--audio/AudioPolicyManagerBase.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}