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

Commit 484979b1 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

ACodec: blank surface when switching to another surface

Bug: 20885565
Change-Id: I9b0d279724aab24e0a270770258716d115ef15bc
parent b2d0b487
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -651,6 +651,11 @@ status_t ACodec::handleSetSurface(const sp<Surface> &surface) {
        (void)surface->getIGraphicBufferProducer()->allowAllocation(false);
        (void)surface->getIGraphicBufferProducer()->allowAllocation(false);
    }
    }


    // push blank buffers to previous window if requested
    if (mFlags & kFlagPushBlankBuffersToNativeWindowOnShutdown) {
        pushBlankBuffersToNativeWindow(mNativeWindow.get());
    }

    mNativeWindow = nativeWindow;
    mNativeWindow = nativeWindow;
    return OK;
    return OK;
}
}