summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastThreadState.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-05-13 10:57:40 -0700
committerGlenn Kasten <gkasten@google.com>2014-05-13 13:26:30 -0700
commit963698408b1ce0f2ac7eab1e863dc7271de116a3 (patch)
treea3b2d430f8a439f2c95ed17c8e7e9edd51a69fc0 /services/audioflinger/FastThreadState.cpp
parent5e4c4f12337ff4d7ceb105bcd441bb7aea6ab070 (diff)
downloadframeworks_av-963698408b1ce0f2ac7eab1e863dc7271de116a3.zip
frameworks_av-963698408b1ce0f2ac7eab1e863dc7271de116a3.tar.gz
frameworks_av-963698408b1ce0f2ac7eab1e863dc7271de116a3.tar.bz2
Fix memory corruption if increaseSamplingN is not called
Change-Id: Icbf9aaf68c25ba3330ceb79167bd776cf0342d0d
Diffstat (limited to 'services/audioflinger/FastThreadState.cpp')
-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;