diff options
author | Eric Laurent <elaurent@google.com> | 2011-07-26 20:32:28 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-07-26 20:32:28 -0700 |
commit | d1a243e41caffa8fd346907eed4625c9c47c1a86 (patch) | |
tree | a70db88e26c80b621e5e2cb326a5945ccbb5f3cc /media/libmedia | |
parent | 288b66b60c9b3af3d84408885d0a4030c45eea9a (diff) | |
download | frameworks_av-d1a243e41caffa8fd346907eed4625c9c47c1a86.zip frameworks_av-d1a243e41caffa8fd346907eed4625c9c47c1a86.tar.gz frameworks_av-d1a243e41caffa8fd346907eed4625c9c47c1a86.tar.bz2 |
AudioRecord: Fix getInput()
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
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 1ec596e..16554c2 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -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 |