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

Commit 2adbeda4 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "NuPlayer: check mSource before deferencing it." into lmp-dev

parents 9f8551ff f702d041
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1244,7 +1244,8 @@ status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) {
    CHECK(msg->findMessage("reply", &reply));

    if ((audio && mFlushingAudio != NONE)
            || (!audio && mFlushingVideo != NONE)) {
            || (!audio && mFlushingVideo != NONE)
            || mSource == NULL) {
        reply->setInt32("err", INFO_DISCONTINUITY);
        reply->post();
        return OK;