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

Commit fd5486c7 authored by Wonsik Kim's avatar Wonsik Kim Committed by android-build-team Robot
Browse files

codec2: force array mode for graphic metadata buffers

Bug: 133291455
Test: bug repro steps (10 times)
Change-Id: I7513a97dcfa50df880539a4a121c697952aae36a
(cherry picked from commit 1221fd17)
parent a4ce3884
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -896,6 +896,9 @@ status_t CCodecBufferChannel::start(
                input->buffers.reset(new DummyInputBuffers(mName));
            } else if (mMetaMode == MODE_ANW) {
                input->buffers.reset(new GraphicMetadataInputBuffers(mName));
                // This is to ensure buffers do not get released prematurely.
                // TODO: handle this without going into array mode
                forceArrayMode = true;
            } else {
                input->buffers.reset(new GraphicInputBuffers(numInputSlots, mName));
            }