diff options
author | Lajos Molnar <lajos@google.com> | 2015-05-06 11:52:24 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-05-06 11:53:05 -0700 |
commit | d02ac2c7286ca7190ddaf861095cd0b16e28da1e (patch) | |
tree | 59da6b11f6ee50a543e8a6b7865f59be6516b167 /media/libstagefright/ACodec.cpp | |
parent | d7ab7afa57ed1fa6fb9c4ce18ea0df3ec939c067 (diff) | |
download | frameworks_av-d02ac2c7286ca7190ddaf861095cd0b16e28da1e.zip frameworks_av-d02ac2c7286ca7190ddaf861095cd0b16e28da1e.tar.gz frameworks_av-d02ac2c7286ca7190ddaf861095cd0b16e28da1e.tar.bz2 |
stagefright: fix pushBlankBuffersToNW for non-meta decoders
Bug: 20709429
Change-Id: Ifaee74083dedecb755e5c8ba3369cf90dfd74035
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index b7798d2..22395cc 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -4156,6 +4156,9 @@ status_t ACodec::pushBlankBuffersToNativeWindow() { goto error; } + static_cast<Surface*>(mNativeWindow.get()) + ->getIGraphicBufferProducer()->allowAllocation(true); + err = mNativeWindow->query(mNativeWindow.get(), NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &minUndequeuedBufs); if (err != NO_ERROR) { |