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

Commit 4f2c04ce 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: 24ab37df

Change-Id: I327dcbc1f2e786505fb6f8b7fb21ecbb5753080d
parents d21f8c13 24ab37df
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();
    }
}