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

Commit be0ee69a authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio: fix audioSession null check"

parents ec0a5ac4 587b8dfd
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;
    }