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

Commit f61e899a authored by Wonsik Kim's avatar Wonsik Kim
Browse files

CCodecBufferChannel: add null checks

Bug: 185869285
Test: manual
Change-Id: I86cc4f37cd74704718accda4c8cc43f4121427a1
parent 22541847
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1761,7 +1761,7 @@ bool CCodecBufferChannel::handleWork(
        {
            Mutexed<Output>::Locked output(mOutput);
            numOutputSlots = output->numSlots;
            reorderDepth = output->buffers->getReorderDepth();
            reorderDepth = output->buffers ? output->buffers->getReorderDepth() : 0;
        }
        Mutexed<OutputSurface>::Locked output(mOutputSurface);
        output->maxDequeueBuffers = numOutputSlots + reorderDepth + kRenderingDepth;