diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-05 14:41:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-05 14:41:31 +0000 |
commit | 6c104a4a245ea72b7bdf8c7c016121189045d4bc (patch) | |
tree | 9b7ae3d8df29debf778259609b9c349959cd82f1 /media | |
parent | fd87902a26f1a954643a5d0b414bd31a3cf61e0a (diff) | |
parent | f0f33c4acd231fa95deb9eeef2c46b0129e64463 (diff) | |
download | frameworks_av-6c104a4a245ea72b7bdf8c7c016121189045d4bc.zip frameworks_av-6c104a4a245ea72b7bdf8c7c016121189045d4bc.tar.gz frameworks_av-6c104a4a245ea72b7bdf8c7c016121189045d4bc.tar.bz2 |
Merge "AudioRecord has no default sample rate"
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 103a5f1..2cffaeb 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -175,7 +175,8 @@ status_t AudioRecord::set( } if (sampleRate == 0) { - sampleRate = DEFAULT_SAMPLE_RATE; + ALOGE("Invalid sample rate %u", sampleRate); + return BAD_VALUE; } mSampleRate = sampleRate; |