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

Commit 117c561e authored by Dichen Zhang's avatar Dichen Zhang Committed by android-build-merger
Browse files

Merge "stagefright: Clear RenderQueue on port settings changed" am: 1a3181d3

am: 8b3cc2b0

Change-Id: Ia4b8ca2d59824d9d78b86b29861ce2ffc1b515c2
parents 669ee79d 8b3cc2b0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7922,6 +7922,10 @@ bool ACodec::OutputPortSettingsChangedState::onOMXEvent(
                            OMX_CommandPortEnable, kPortIndexOutput);
                }

                // Clear the RenderQueue in which queued GraphicBuffers hold the
                // actual buffer references in order to free them early.
                mCodec->mRenderTracker.clear(systemTime(CLOCK_MONOTONIC));

                if (err == OK) {
                    err = mCodec->allocateBuffersOnPort(kPortIndexOutput);
                    ALOGE_IF(err != OK, "Failed to allocate output port buffers after port "