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

Commit 49aecf0d authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audioflinger: Clear InputSource in RecordThread::clearInput

This is for consistency with 'clearOutput' which clears the sink.

The intention is to facilitate releasing of the HAL stream which
is one of possible NBAIO_Source implementations.

Bug: 298175108
Test: atest audiosystem_tests
Change-Id: I7d087836f1c57ff4872c355eac5d3ecad724b5a8
parent 61ccb486
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9237,6 +9237,7 @@ AudioFlinger::AudioStreamIn* AudioFlinger::RecordThread::clearInput()
    Mutex::Autolock _l(mLock);
    AudioStreamIn *input = mInput;
    mInput = NULL;
    mInputSource.clear();
    return input;
}