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

Commit 7545b08c authored by Wei Jia's avatar Wei Jia Committed by Android Git Automerger
Browse files

am bc6d8cf5: am db350735: Merge "NuPlayerRenderer: clear first audio anchor...

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

* commit 'bc6d8cf5':
  NuPlayerRenderer: clear first audio anchor time only when audio is flushed.
parents a66d6749 bc6d8cf5
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;
    }