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

Commit 5a7ae5ec authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

Merge "nuplayer: Do not notify EOS when paused" into oc-dev

am: b81da0bd

Change-Id: I6ca6e018d63cd171e38ef34a49da1f217f54fded
parents 746e4da9 b81da0bd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1010,6 +1010,13 @@ bool NuPlayer::Renderer::onDrainAudioQueue() {
            }

            // EOS
            if (mPaused) {
                // Do not notify EOS when paused.
                // This is needed to avoid switch to next clip while in pause.
                ALOGV("onDrainAudioQueue(): Do not notify EOS when paused");
                return false;
            }

            int64_t postEOSDelayUs = 0;
            if (mAudioSink->needsTrailingPadding()) {
                postEOSDelayUs = getPendingAudioPlayoutDurationUs(ALooper::GetNowUs());