diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-25 15:15:53 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-25 15:20:07 -0800 |
commit | 045e739161f5ae00321a6cfba20935abb791005b (patch) | |
tree | 51ad975be585931d45da9ae101b1455525001a31 /media/libmedia | |
parent | f7cc3631c5c264e13ce8c6bc15bd829b2ff9b036 (diff) | |
download | frameworks_av-045e739161f5ae00321a6cfba20935abb791005b.zip frameworks_av-045e739161f5ae00321a6cfba20935abb791005b.tar.gz frameworks_av-045e739161f5ae00321a6cfba20935abb791005b.tar.bz2 |
Move initialize of mInput to match AudioTrack
Change-Id: I4dc977f22f51cd618dc83d800b4b8756929a4612
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 83e9ea8..7f86032 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -504,10 +504,8 @@ status_t AudioRecord::openRecord_l(size_t epoch) mAudioRecord->asBinder()->unlinkToDeath(mDeathNotifier, this); mDeathNotifier.clear(); } - - // We retain a copy of the I/O handle, but don't own the reference - mInput = input; mAudioRecord = record; + mCblkMemory = iMem; audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); mCblk = cblk; @@ -537,6 +535,8 @@ status_t AudioRecord::openRecord_l(size_t epoch) } } + // We retain a copy of the I/O handle, but don't own the reference + mInput = input; mRefreshRemaining = true; // Starting address of buffers in shared memory, immediately after the control block. This |