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

Commit 24ab37df 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" into oc-dev

am: bd4676a6

Change-Id: I47968ea5fda22eeda7d26383fae6aa01e73bb561
parents de9075f8 bd4676a6
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();
    }
}