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

Commit 81d678c4 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "GraphicBufferSource: no longer hold onto repeatable buffer after eos"...

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

Change-Id: I9c81a94ea21aa445f2e9b99feefbe9c8bb5521f0
parents d21f8c13 cb8a5aa6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -829,6 +829,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();
    }
}