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

Commit b6537d04 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I219eca62b75d1e4870a3444d60d3c9fc15c01cd6
parents 62883200 19d51164
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;
        }
    }