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

Commit 6cc7a9a5 authored by Steve Kondik's avatar Steve Kondik Committed by Arne Coucheron
Browse files

nuplayer: Avoid crash when codec fails to load

 * Remove unnecessary check condition.

Change-Id: I3267a0c13165d74a2ea90333b42f000b51ace98b
parent e6d7b44f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2350,9 +2350,6 @@ void NuPlayer::performDecoderFlush(FlushCommand audio, FlushCommand video) {
void NuPlayer::performReset() {
    ALOGV("performReset");

    CHECK(mAudioDecoder == NULL);
    CHECK(mVideoDecoder == NULL);

    updatePlaybackTimer(true /* stopping */, "performReset");
    updateRebufferingTimer(true /* stopping */, true /* exiting */);