From a28a508d2dd10ac2858c334a1a0fe0ff1350e98c Mon Sep 17 00:00:00 2001 From: hschlueter Date: Wed, 3 Aug 2022 15:52:24 +0000 Subject: [PATCH] Fix saving previous debugSurfaceView in FinalMatrixTPWrapper. PiperOrigin-RevId: 465067306 --- .../effect/FinalMatrixTransformationProcessorWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java b/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java index 70cfbb3aa5..77801f3774 100644 --- a/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java +++ b/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java @@ -79,7 +79,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; @Nullable private SurfaceViewWrapper debugSurfaceViewWrapper; private @MonotonicNonNull Listener listener; private @MonotonicNonNull Pair outputSizeBeforeSurfaceTransformation; - private @MonotonicNonNull SurfaceView debugSurfaceView; + @Nullable private SurfaceView debugSurfaceView; private volatile boolean outputSizeOrRotationChanged; @@ -229,6 +229,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; debugSurfaceViewWrapper = new SurfaceViewWrapper(eglDisplay, eglContext, useHdr, debugSurfaceView); } + this.debugSurfaceView = debugSurfaceView; } if (matrixTransformationProcessor != null && outputSizeOrRotationChanged) {