Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d02ac2c7 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: fix pushBlankBuffersToNW for non-meta decoders

Bug: 20709429
Change-Id: Ifaee74083dedecb755e5c8ba3369cf90dfd74035
parent d7ab7afa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {