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

Commit cd69f69c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "CCodec: add to check pipelineFull() in feedInputBufferIfAvailableInternal()"

parents 9fb67351 da0517d8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -618,7 +618,7 @@ void CCodecBufferChannel::feedInputBufferIfAvailable() {
}

void CCodecBufferChannel::feedInputBufferIfAvailableInternal() {
    if (mInputMetEos || mPipelineWatcher.lock()->pipelineFull()) {
    if (mInputMetEos) {
        return;
    }
    {
@@ -631,6 +631,9 @@ void CCodecBufferChannel::feedInputBufferIfAvailableInternal() {
    }
    size_t numInputSlots = mInput.lock()->numSlots;
    for (size_t i = 0; i < numInputSlots; ++i) {
        if (mPipelineWatcher.lock()->pipelineFull()) {
            return;
        }
        sp<MediaCodecBuffer> inBuffer;
        size_t index;
        {