summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
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) {