diff options
author | root <pmerle@kph.uni-mainz.de> | 2009-03-02 20:48:27 +0100 |
---|---|---|
committer | root <pmerle@kph.uni-mainz.de> | 2009-03-02 20:48:27 +0100 |
commit | eb7dc8939c06a1755d7c82baf0d0d008aa4d5fcb (patch) | |
tree | f82707855820ec4d6547b96a7f925288869e4625 | |
parent | 74b79edce2638fe87fb4ec8f7702fcd70b72207d (diff) | |
download | frameworks_av-eb7dc8939c06a1755d7c82baf0d0d008aa4d5fcb.zip frameworks_av-eb7dc8939c06a1755d7c82baf0d0d008aa4d5fcb.tar.gz frameworks_av-eb7dc8939c06a1755d7c82baf0d0d008aa4d5fcb.tar.bz2 |
Fixed typing mistake causing process crashes.
-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 3d39181..e833c85 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -400,7 +400,7 @@ status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount) uint32_t u = cblk->user; uint32_t bufferEnd = cblk->userBase + cblk->frameCount; - if (u + framesReady > bufferEnd) { + if (u + framesReq > bufferEnd) { framesReq = bufferEnd - u; } |