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

Commit 958c7169 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

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

Change-Id: Ia7f69d4077c4f4e4a9a09ae96e325dcb29e4d1e7
parents a0020f9a 07218133
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -618,7 +618,7 @@ void CCodecBufferChannel::feedInputBufferIfAvailable() {
}
}


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