OSDN Git Service

stagefright: set scaling mode for blank frames in ACodec
authorDima Zavin <dima@android.com>
Thu, 18 Jul 2013 18:43:39 +0000 (11:43 -0700)
committerDima Zavin <dima@android.com>
Thu, 18 Jul 2013 18:43:39 +0000 (11:43 -0700)
commit87eb285dca94b20dc5f0ff8e60a0d395a4ca3be9
tree6a975fda24cf0b051ce4c856e49570cbe0c8ab7e
parentee5e8d3e8dc61f8fb1fa725278d63802074c10c5
stagefright: set scaling mode for blank frames in ACodec

Analogous to 1d5ac80d0c6d3deabcc9e9b4abc9e3ef536aeb27
(by jgennis), this sets the scaling mode for the ANativeWindow
to SCALE_TO_WINDOW prior to pushing the blank frames during
decoder tear down.

Without this, the window defaults to FREEZE and SF ignores the
new frames.

Bug: 9516405
Change-Id: I39ef30922d733034bf01100d7ff24ac9c0c33b7d
Signed-off-by: Dima Zavin <dima@android.com>
media/libstagefright/ACodec.cpp