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

Commit 472c738c authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Remove buffers from mFlushedConfigs when queued

Bug: 129368298

Change-Id: Iaf631449bd5d2f6fc6ab523a5fbd5169d9ec9835
parent 6a91f7cf
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2483,6 +2483,7 @@ status_t CCodecBufferChannel::requestInitialInputBuffers() {
            bool post = true;
            bool post = true;
            if (!configs->empty()) {
            if (!configs->empty()) {
                sp<ABuffer> config = configs->front();
                sp<ABuffer> config = configs->front();
                configs->pop_front();
                if (buffer->capacity() >= config->size()) {
                if (buffer->capacity() >= config->size()) {
                    memcpy(buffer->base(), config->data(), config->size());
                    memcpy(buffer->base(), config->data(), config->size());
                    buffer->setRange(0, config->size());
                    buffer->setRange(0, config->size());