OSDN Git Service

Stagefright: push blank buffers when tearing down
authorJamie Gennis <jgennis@google.com>
Tue, 25 Oct 2011 21:50:16 +0000 (14:50 -0700)
committerJamie Gennis <jgennis@google.com>
Wed, 26 Oct 2011 01:35:02 +0000 (18:35 -0700)
commit1765d6e0c962d2b89897c0278f969084f632d181
tree236c1712a02b293093d658a3248804ebaf4f3786
parent55f4bc5c3d1acfaa735b8b19cf34b6b68f6cfcca
Stagefright: push blank buffers when tearing down

This change makes OMXCodec push RGB 565 buffers filled with black to an
ANativeWindow when tearing down after decoding to protected gralloc
buffers.  This allows the OMX tear down to zero out any protected
buffers that were used without the possibility that the buffer is still
being used by SurfaceFlinger or HWComposer.

Bug: 5483222
Change-Id: I8acedd81a7bb67dfdc2fd15733e3375b6ce8d560
include/media/stagefright/OMXCodec.h
media/libstagefright/OMXCodec.cpp