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

Commit 5732cabc authored by Xu Lai's avatar Xu Lai Committed by Lin Lili
Browse files

update inputdelay if changed

update CCodecBufferChannel inputdelay if changed

Bug: 278157793
Test: android.mediastress.cts
Change-Id: Ib47281f70fcc0827fa0786fdd30f7cdd9edc6f57
parent d78c656e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1972,6 +1972,7 @@ bool CCodecBufferChannel::handleWork(
            newInputDelay.value_or(input->inputDelay) +
            newPipelineDelay.value_or(input->pipelineDelay) +
            kSmoothnessFactor;
        input->inputDelay = newInputDelay.value_or(input->inputDelay);
        if (input->buffers->isArrayMode()) {
            if (input->numSlots >= newNumSlots) {
                input->numExtraSlots = 0;