summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-02-26 11:32:32 -0800
committerGlenn Kasten <gkasten@google.com>2013-03-04 12:58:21 -0800
commitc9b2e20f7c9a71e07ef398152709c76079decbcd (patch)
tree7e3cbee883fbe1462e24a31b8b4af5a5911e8276 /media
parentbf04b5860182d8f4130dcb5d6d88ee68a58c99cd (diff)
downloadframeworks_av-c9b2e20f7c9a71e07ef398152709c76079decbcd.zip
frameworks_av-c9b2e20f7c9a71e07ef398152709c76079decbcd.tar.gz
frameworks_av-c9b2e20f7c9a71e07ef398152709c76079decbcd.tar.bz2
Miscellaneous cleanup
Abbreviation framesReady to fRdy for new systrace. Put inline const on one line. Use local copy of mState in state. Improve logging. Line length 100. Change-Id: I8201c3ce0e53fd464fd33d02544e52c342d40b68
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/AudioRecord.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp
index 0a2b0b0..40ff1bf 100644
--- a/media/libmedia/AudioRecord.cpp
+++ b/media/libmedia/AudioRecord.cpp
@@ -47,9 +47,9 @@ status_t AudioRecord::getMinFrameCount(
*frameCount = 0;
size_t size = 0;
- if (AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size)
- != NO_ERROR) {
- ALOGE("AudioSystem could not query the input buffer size.");
+ status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size);
+ if (status != NO_ERROR) {
+ ALOGE("AudioSystem could not query the input buffer size; status %d", status);
return NO_INIT;
}