diff options
author | Lajos Molnar <lajos@google.com> | 2015-05-06 11:52:24 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-05-06 13:51:16 -0700 |
commit | 781f40ad2eacd5e6944b9c17d04a800360d97768 (patch) | |
tree | 72f3ded173c8ca3a330c95a0232fc593cd99ee3c | |
parent | b583e275e40325f304dbabcb1914409d60df09ce (diff) | |
download | frameworks_av-781f40ad2eacd5e6944b9c17d04a800360d97768.zip frameworks_av-781f40ad2eacd5e6944b9c17d04a800360d97768.tar.gz frameworks_av-781f40ad2eacd5e6944b9c17d04a800360d97768.tar.bz2 |
stagefright: fix pushBlankBuffersToNW for non-meta decoders
Bug: 20709429
Change-Id: Ifaee74083dedecb755e5c8ba3369cf90dfd74035
-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) { |