From 045e739161f5ae00321a6cfba20935abb791005b Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Tue, 25 Feb 2014 15:15:53 -0800 Subject: Move initialize of mInput to match AudioTrack Change-Id: I4dc977f22f51cd618dc83d800b4b8756929a4612 --- media/libmedia/AudioRecord.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'media/libmedia/AudioRecord.cpp') 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(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 -- cgit v1.1