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

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

Merge "Count all nuplayer frames"

parents 599660ea c6e9f6eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -752,6 +752,8 @@ bool NuPlayer::Decoder::handleAnOutputBuffer(
        reply->setInt32("eos", true);
    }

    mNumFramesTotal += !mIsAudio;

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

    mNumFramesTotal += !mIsAudio;

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