Move local declarations to point of first use
Change-Id: I8a078386e371caab5174fc07b47f48fb9f21609a
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 @@
bool AudioFlinger::RecordThread::threadLoop()
{
- AudioBufferProvider::Buffer buffer;
-
nsecs_t lastWarning = 0;
inputStandBy();
@@ -4511,6 +4509,7 @@
effectChains[i]->process_l();
}
+ AudioBufferProvider::Buffer buffer;
buffer.frameCount = mFrameCount;
status_t status = activeTrack->getNextBuffer(&buffer);
if (status == NO_ERROR) {