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

Commit a63c9e6d authored by Cong Jiajia's avatar Cong Jiajia Committed by Hangyu Kuang
Browse files

GraphicBufferSource: ensure EOS buffer can be submitted

Sometimes, even mStopTimeUs is set by calling setStopTimeUs(), the EOS
buffer may still not be submitted, because fillCodecBuffer_l() may not
be called. So, remove this condition checking, and once if
submitEndOfInputStream_l() be called, mEndOfStremSent will be set to
true. So EOS buffer won't be send twice.

Bug: 2356695
Test: CTS test.
Change-Id: I5b69a9281f577e692eb2a471fe1998b0cb09ba45
parent 499d7b95
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1423,7 +1423,7 @@ status_t GraphicBufferSource::signalEndOfInputStream() {
    // stall since no future events are expected.
    mEndOfStream = true;

    if (mStopTimeUs == -1 && mExecuting && !haveAvailableBuffers_l()) {
    if (mExecuting && !haveAvailableBuffers_l()) {
        submitEndOfInputStream_l();
    }