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

Commit fadcfa0e 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
am: 81d678c4

Change-Id: I3d9425afed6ee6a94902577a26a14265c97a9a31
parents 175f0f0b 81d678c4
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();
    }
}