From bbb7b1c0bc2dc004612d0644d862494fcdda294d Mon Sep 17 00:00:00 2001 From: Googler 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/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java index 3561c77907..7916d974e5 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java +++ b/google3/third_party/java_src/android_libs/media/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) {