Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 678cc959 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioRecord: Fix getInput()

AudioRecord::getInput() was issuing a query to get a new input stream from
audio policy service instead of returning the cached input stream in AudioRecord.

Change-Id: Ice324b7c60bc0898149023797bcb56a72091b9d3
parent bce8effe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -590,7 +590,7 @@ void AudioRecord::releaseBuffer(Buffer* audioBuffer)
audio_io_handle_t AudioRecord::getInput()
{
    AutoMutex lock(mLock);
    return getInput_l();
    return mInput;
}

// must be called with mLock held