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

Commit 04698a34 authored by ted.sun's avatar ted.sun Committed by Henry Fang
Browse files

CCodec: drop buffer and not notify client if outputformat isn't changed for FLAG_DROP_FRAME.

Bug: 151995371
Test: local test ok.
Change-Id: I806c3af8e733abee38cb1d815b54f52135607b82
parent b8fe01e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1724,7 +1724,7 @@ bool CCodecBufferChannel::handleWork(
        drop = true;
    }

    if (notifyClient && !buffer && !flags && !drop) {
    if (notifyClient && !buffer && !flags && !(drop && outputFormat)) {
        ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)",
              mName, work->input.ordinal.frameIndex.peekull());
        notifyClient = false;
@@ -1751,7 +1751,7 @@ bool CCodecBufferChannel::handleWork(
            return false;
        }
        output->buffers->pushToStash(
                buffer,
                drop ? nullptr : buffer,
                notifyClient,
                timestamp.peek(),
                flags,