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

Commit bd4676a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "GraphicBufferSource: no longer hold onto repeatable buffer after eos" into oc-dev

parents e09e9661 1f0fa90d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -827,6 +827,10 @@ void GraphicBufferSource::submitEndOfInputStream_l() {
        ssize_t cbix = mSubmittedCodecBuffers.add(codecBufferId, nullptr);
        ALOGV("submitEndOfInputStream_l: buffer submitted, bufferId=%u@%zd", codecBufferId, cbix);
        mEndOfStreamSent = true;

        // no need to hold onto any buffers for frame repeating
        ++mRepeatLastFrameGeneration;
        mLatestBuffer.mBuffer.reset();
    }
}