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

Commit 587b8dfd authored by vivek mehta's avatar vivek mehta Committed by Eric Laurent
Browse files

audio: fix audioSession null check

Test: make

Change-Id: Ied514f8fb7496143bad45504151ca16226c67767
parent a1ee4c28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1932,7 +1932,7 @@ void AudioPolicyManager::releaseInput(audio_io_handle_t input,
    ALOG_ASSERT(inputDesc != 0);

    sp<AudioSession> audioSession = inputDesc->getAudioSession(session);
    if (index < 0) {
    if (audioSession == 0) {
        ALOGW("releaseInput() unknown session %d on input %d", session, input);
        return;
    }