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

Commit 64f62df6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "NuPlayer2Decoder: Count all nuplayer frames"

parents e5b50aee 5ed2faf6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -766,6 +766,8 @@ bool NuPlayer2::Decoder::handleAnOutputBuffer(
        reply->setInt32("eos", true);
    }

    mNumFramesTotal += !mIsAudio;

    if (mSkipRenderingUntilMediaTimeUs >= 0) {
        if (timeUs < mSkipRenderingUntilMediaTimeUs) {
            ALOGV("[%s] dropping buffer at time %lld as requested.",
@@ -784,8 +786,6 @@ bool NuPlayer2::Decoder::handleAnOutputBuffer(
        mSkipRenderingUntilMediaTimeUs = -1;
    }

    mNumFramesTotal += !mIsAudio;

    // wait until 1st frame comes out to signal resume complete
    notifyResumeCompleteIfNecessary();