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

Commit 96e879f3 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

Revert "CCodec: drop buffer and not notify client if outputformat isn't...

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

This reverts commit 04698a34.

Bug: 193482724
Bug: 193867146
Test: cts/media/device-small
Change-Id: Idccd758d2760de446403a41d65f52a879a9caf10
parent 74dcdac0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1887,7 +1887,7 @@ bool CCodecBufferChannel::handleWork(
        drop = true;
    }

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