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

Commit cd0cde42 authored by Chong Zhang's avatar Chong Zhang Committed by Gerrit - the friendly Code Review server
Browse files

IOMX: do not clear buffer if it's allocated by component

The component might depends on their buffers to be initialized
in certain ways to work. Don't clear unless we're allocating it.

bug: 31586647
Change-Id: Ia0a125797e414998ef0cd8ce03672f5b1e0bbf7a
(cherry picked from commit ea76573a)
(cherry picked from commit 640b04121d7cd2cac90e2f7c82b97fce05f074a5)
parent 823404ef
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1314,7 +1314,6 @@ status_t OMXNodeInstance::allocateBufferWithBackup(
    }

    CHECK_EQ(header->pAppPrivate, buffer_meta);
    memset(header->pBuffer, 0, header->nAllocLen);

    *buffer = makeBufferID(header);