OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0af8b
)
Return the record state locked
author
Glenn Kasten
<gkasten@google.com>
Fri, 19 Jul 2013 00:10:42 +0000
(17:10 -0700)
committer
Glenn Kasten
<gkasten@google.com>
Mon, 22 Jul 2013 14:40:09 +0000
(07:40 -0700)
This field is always accessed with a lock held.
See Change-Id: I502b7401196c42932c9667ef73eb4cae16c3da16
Change-Id: I0900b60cd6b9076868532f951db370ccd5a0312e
media/java/android/media/AudioRecord.java
patch
|
blob
|
history
diff --git
a/media/java/android/media/AudioRecord.java
b/media/java/android/media/AudioRecord.java
index
5383d08
..
6da0e25
100644
(file)
--- a/
media/java/android/media/AudioRecord.java
+++ b/
media/java/android/media/AudioRecord.java
@@
-421,7
+421,9
@@
public class AudioRecord
* @see AudioRecord#RECORDSTATE_RECORDING
*/
public int getRecordingState() {
- return mRecordingState;
+ synchronized (mRecordingStateLock) {
+ return mRecordingState;
+ }
}
/**