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

Commit f702d041 authored by Wei Jia's avatar Wei Jia
Browse files

NuPlayer: check mSource before deferencing it.

Bug: 17428608
Change-Id: I7b264d1288ed3c495434aedeeeef2fbfc3ca2f16
parent 62ce2072
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1242,7 +1242,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;