summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-10-16 15:00:37 -0700
committerMarco Nelissen <marcone@google.com>2012-10-16 15:00:37 -0700
commit85ad78f27ca032e90af0f2100659d12c16322c76 (patch)
treeac0524dc1523f0a8af4caa9374323ac9dfe1d98e /audio
parentb707cf22cf700e28f54c58cba8eeb38538735510 (diff)
downloadhardware_libhardware_legacy-85ad78f27ca032e90af0f2100659d12c16322c76.zip
hardware_libhardware_legacy-85ad78f27ca032e90af0f2100659d12c16322c76.tar.gz
hardware_libhardware_legacy-85ad78f27ca032e90af0f2100659d12c16322c76.tar.bz2
Initialize mStrategyMutedByDevice
Valgrind found this Change-Id: I24c640c2b0b6cac129c23bfc18828aff005ec952
Diffstat (limited to 'audio')
-rw-r--r--audio/AudioPolicyManagerBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp
index 51b1501..99733d3 100644
--- a/audio/AudioPolicyManagerBase.cpp
+++ b/audio/AudioPolicyManagerBase.cpp
@@ -2952,6 +2952,9 @@ AudioPolicyManagerBase::AudioOutputDescriptor::AudioOutputDescriptor(
mMuteCount[i] = 0;
mStopTime[i] = 0;
}
+ for (int i = 0; i < NUM_STRATEGIES; i++) {
+ mStrategyMutedByDevice[i] = false;
+ }
if (profile != NULL) {
mSamplingRate = profile->mSamplingRates[0];
mFormat = profile->mFormats[0];