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

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

Merge "NuPlayerRenderer: clear first audio anchor time only when audio is flushed." into mnc-dev

parents 4b33e083 3b0cd26d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ void NuPlayer::Renderer::flush(bool audio, bool notifyComplete) {
        Mutex::Autolock autoLock(mLock);
        if (audio) {
            mNotifyCompleteAudio |= notifyComplete;
            clearAudioFirstAnchorTime_l();
            ++mAudioQueueGeneration;
            ++mAudioDrainGeneration;
        } else {
@@ -275,7 +276,6 @@ void NuPlayer::Renderer::flush(bool audio, bool notifyComplete) {
        }

        clearAnchorTime_l();
        clearAudioFirstAnchorTime_l();
        mVideoLateByUs = 0;
        mSyncQueues = false;
    }