summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-08-19 08:40:21 -0700
committerGlenn Kasten <gkasten@google.com>2013-11-04 15:34:23 -0800
commitb91aa63779ad1ce1846fbc604f9ec935e0c67852 (patch)
treefbb8b1e0094a2399446ce36b686ff4531595bb06 /services
parentd21952fe5bc94f7bb6ee729f806c0e641fdb1a0d (diff)
downloadframeworks_av-b91aa63779ad1ce1846fbc604f9ec935e0c67852.zip
frameworks_av-b91aa63779ad1ce1846fbc604f9ec935e0c67852.tar.gz
frameworks_av-b91aa63779ad1ce1846fbc604f9ec935e0c67852.tar.bz2
Move local declarations to point of first use
Change-Id: I8a078386e371caab5174fc07b47f48fb9f21609a
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index ef90952..38fb1c4 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -4400,8 +4400,6 @@ void AudioFlinger::RecordThread::onFirstRef()
bool AudioFlinger::RecordThread::threadLoop()
{
- AudioBufferProvider::Buffer buffer;
-
nsecs_t lastWarning = 0;
inputStandBy();
@@ -4511,6 +4509,7 @@ bool AudioFlinger::RecordThread::threadLoop()
effectChains[i]->process_l();
}
+ AudioBufferProvider::Buffer buffer;
buffer.frameCount = mFrameCount;
status_t status = activeTrack->getNextBuffer(&buffer);
if (status == NO_ERROR) {