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

Commit 06f1f0de authored by Wonsik Kim's avatar Wonsik Kim
Browse files

Revert "CCodec: don't drop metadata for output with flag FLAG_DROP_FRAME."

This reverts commit b8fe01e5.

Bug: 193482724
Bug: 193867146
Test: cts/media/device-small
Change-Id: I00375414c2e0491f4af4681858eae17e0dc43be6
parent 96e879f3
Loading
Loading
Loading
Loading
+1 −7
Original line number Original line Diff line number Diff line
@@ -1881,13 +1881,7 @@ bool CCodecBufferChannel::handleWork(
        }
        }
    }
    }


    bool drop = false;
    if (notifyClient && !buffer && !flags) {
    if (worklet->output.flags & C2FrameData::FLAG_DROP_FRAME) {
        ALOGV("[%s] onWorkDone: drop buffer but keep metadata", mName);
        drop = true;
    }

    if (notifyClient && !buffer && !flags && !drop) {
        ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)",
        ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)",
              mName, work->input.ordinal.frameIndex.peekull());
              mName, work->input.ordinal.frameIndex.peekull());
        notifyClient = false;
        notifyClient = false;