OSDN Git Service

IOMX: do not clear buffer if it's allocated by component
authorChong Zhang <chz@google.com>
Mon, 19 Sep 2016 22:29:04 +0000 (15:29 -0700)
committerLajos Molnar <lajos@google.com>
Mon, 19 Sep 2016 23:25:15 +0000 (23:25 +0000)
commitea76573aa276f51950007217a97903c4fe64f685
tree03bb464af8caa7523aec84028407ce17c6c9dd4f
parentc13904014bfeb56b8a3cc372190bb3a2dd8f1e0d
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
media/libstagefright/omx/OMXNodeInstance.cpp