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

Commit 68207009 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Change to output ArrayMode if using SkipCutBuffer" into main am: 0f1a26a9 am: 8242e5a6

parents 4a1c36e9 8242e5a6
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -1604,8 +1604,14 @@ status_t CCodecBufferChannel::start(
                    padding = 0;
                }
                if (delay || padding) {
                    // We need write access to the buffers, and we're already in
                    // array mode.
                    // We need write access to the buffers, so turn them into array mode.
                    // TODO: b/321930152 - define SkipCutOutputBuffers that takes output from
                    // component, runs it through SkipCutBuffer and allocate local buffer to be
                    // used by fwk. Make initSkipCutBuffer() return OutputBuffers similar to
                    // toArrayMode().
                    if (!output->buffers->isArrayMode()) {
                        output->buffers = output->buffers->toArrayMode(numOutputSlots);
                    }
                    output->buffers->initSkipCutBuffer(delay, padding, sampleRate, channelCount);
                }
            }