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

Commit 19d51164 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CCodec: Guard against null output->buffers" into rvc-dev

parents a0a5ad22 c3c536d3
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -618,13 +618,14 @@ void CCodecBufferChannel::feedInputBufferIfAvailable() {
}

void CCodecBufferChannel::feedInputBufferIfAvailableInternal() {
    if (mInputMetEos ||
           mOutput.lock()->buffers->hasPending() ||
           mPipelineWatcher.lock()->pipelineFull()) {
    if (mInputMetEos || mPipelineWatcher.lock()->pipelineFull()) {
        return;
    } else {
    }
    {
        Mutexed<Output>::Locked output(mOutput);
        if (!output->buffers || output->buffers->numClientBuffers() >= output->numSlots) {
        if (!output->buffers ||
                output->buffers->hasPending() ||
                output->buffers->numClientBuffers() >= output->numSlots) {
            return;
        }
    }