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

Commit 5ec17e29 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5443865 from b94a3d3e to pi-qpr3-b-release

Change-Id: I43d0e8616e0a4f2a011ce5e6c83684921458726c
parents ec01e6f6 b94a3d3e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -783,9 +783,6 @@ status_t ACodec::handleSetSurface(const sp<Surface> &surface) {
    // need to enable allocation when attaching
    surface->getIGraphicBufferProducer()->allowAllocation(true);

    // dequeueBuffer cannot time out
    surface->setDequeueTimeout(-1);

    // for meta data mode, we move dequeud buffers to the new surface.
    // for non-meta mode, we must move all registered buffers
    for (size_t i = 0; i < buffers.size(); ++i) {
+0 −2
Original line number Diff line number Diff line
@@ -2198,7 +2198,6 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                            }

                            if (mime.startsWithIgnoreCase("video/")) {
                                mSurface->setDequeueTimeout(-1);
                                mSoftRenderer = new SoftwareRenderer(mSurface, mRotationDegrees);
                            }
                        }
@@ -2486,7 +2485,6 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                                            && (mFlags & kFlagPushBlankBuffersOnShutdown)) {
                                        pushBlankBuffersToNativeWindow(mSurface.get());
                                    }
                                    surface->setDequeueTimeout(-1);
                                    mSoftRenderer = new SoftwareRenderer(surface);
                                    // TODO: check if this was successful
                                } else {