summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-05-13 23:49:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-13 23:49:30 +0000
commit2d859b91a59b4f6d63ff2bd93b462cab60f4a8d7 (patch)
tree5a139a9ce93e633c4f6b3fe8cd53f3b0095a22d1 /services/audioflinger
parent050eb3280d7305b84f723d515be2dc9606dc39d1 (diff)
parent963698408b1ce0f2ac7eab1e863dc7271de116a3 (diff)
downloadframeworks_av-2d859b91a59b4f6d63ff2bd93b462cab60f4a8d7.zip
frameworks_av-2d859b91a59b4f6d63ff2bd93b462cab60f4a8d7.tar.gz
frameworks_av-2d859b91a59b4f6d63ff2bd93b462cab60f4a8d7.tar.bz2
Merge "Fix memory corruption if increaseSamplingN is not called"
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/FastThreadState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/FastThreadState.cpp b/services/audioflinger/FastThreadState.cpp
index d4d6255..6994872 100644
--- a/services/audioflinger/FastThreadState.cpp
+++ b/services/audioflinger/FastThreadState.cpp
@@ -35,7 +35,7 @@ FastThreadDumpState::FastThreadDumpState() :
/* mMeasuredWarmupTs({0, 0}), */
mWarmupCycles(0)
#ifdef FAST_MIXER_STATISTICS
- , mSamplingN(0), mBounds(0)
+ , mSamplingN(1), mBounds(0)
#endif
{
mMeasuredWarmupTs.tv_sec = 0;