From 963698408b1ce0f2ac7eab1e863dc7271de116a3 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Tue, 13 May 2014 10:57:40 -0700 Subject: Fix memory corruption if increaseSamplingN is not called Change-Id: Icbf9aaf68c25ba3330ceb79167bd776cf0342d0d --- services/audioflinger/FastThreadState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/audioflinger/FastThreadState.cpp') 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; -- cgit v1.1