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

Commit 48e2b36f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "CCodec: add to check pipelineFull() in feedInputBufferIfAvailableInternal()" am: cd69f69c am: 07218133 am: 958c7169 am: 6cf8ceda am: eb7bc8c2

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1431711

Change-Id: If81886543fc0f5543af84dc842ccba2878b87dec
parents 9fe700a8 eb7bc8c2
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;
        {