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

Commit ea76573a authored by Chong Zhang's avatar Chong Zhang Committed by Lajos Molnar
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
parent c1390401
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -907,7 +907,6 @@ status_t OMXNodeInstance::allocateBufferWithBackup(
    }

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

    *buffer = header;