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

Commit 1e0d88b2 authored by Daniel Norman's avatar Daniel Norman
Browse files

Adds a null check in NuPlayer::closeAudioSink.

This was causing a null deref in cts/security/gce-all.

Bug: 142652210
Test: Run cts/security/gce-all, observe no more crash.
Change-Id: If2003b650f69e88825219113ce1b7d70edc4731d
parent 982ecd07
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1798,8 +1798,10 @@ void NuPlayer::tryOpenAudioSinkForOffload(
}

void NuPlayer::closeAudioSink() {
    if (mRenderer != NULL) {
        mRenderer->closeAudioSink();
    }
}

void NuPlayer::restartAudio(
        int64_t currentPositionUs, bool forceNonOffload, bool needsToCreateAudioDecoder) {