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

Commit 0d9812db authored by Chong Zhang's avatar Chong Zhang Committed by Jessica Wagantall
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.

CYNGNOS-3303
bug: 31586647
Change-Id: Ia0a125797e414998ef0cd8ce03672f5b1e0bbf7a
(cherry picked from commit ea76573a)
parent 387b2bec
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,6 @@ status_t OMXNodeInstance::allocateBufferWithBackup(
    }

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

    *buffer = makeBufferID(header);