OSDN Git Service

AudioRecord: Fix getInput()
authorEric Laurent <elaurent@google.com>
Wed, 27 Jul 2011 03:32:28 +0000 (20:32 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 27 Jul 2011 03:32:28 +0000 (20:32 -0700)
AudioRecord::getInput() was issuing a query to get a new input stream from
audio policy service instead of returning the cached input stream in AudioRecord.

Change-Id: Ice324b7c60bc0898149023797bcb56a72091b9d3

media/libmedia/AudioRecord.cpp

index 1ec596e..16554c2 100644 (file)
@@ -590,7 +590,7 @@ void AudioRecord::releaseBuffer(Buffer* audioBuffer)
 audio_io_handle_t AudioRecord::getInput()
 {
     AutoMutex lock(mLock);
-    return getInput_l();
+    return mInput;
 }
 
 // must be called with mLock held