OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288b66b
)
AudioRecord: Fix getInput()
author
Eric Laurent
<elaurent@google.com>
Wed, 27 Jul 2011 03:32:28 +0000
(20:32 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/media/libmedia/AudioRecord.cpp
b/media/libmedia/AudioRecord.cpp
index
1ec596e
..
16554c2
100644
(file)
--- 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