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

Commit 8e2cfb54 authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Ignore channel's onInputBufferDone while using input surface

Test: Record a video while running logcat

Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small

Bug: 132461433
Change-Id: I996fa9d469bc395afb2589c6c0d9e43c8f4b0d69
parent e445c281
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1203,6 +1203,9 @@ void CCodecBufferChannel::onWorkDone(

void CCodecBufferChannel::onInputBufferDone(
        uint64_t frameIndex, size_t arrayIndex) {
    if (mInputSurface) {
        return;
    }
    std::shared_ptr<C2Buffer> buffer =
            mPipelineWatcher.lock()->onInputBufferReleased(frameIndex, arrayIndex);
    bool newInputSlotAvailable;