Commit 48518cf9 by aquilescanta Committed by Oliver Woodman

Add @RequiresApi to releaseDummySurface

dummySurface.release requires API 17.

PiperOrigin-RevId: 403368448
parent 18b1f3d6
...@@ -1173,6 +1173,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer { ...@@ -1173,6 +1173,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
&& (!codecInfo.secure || DummySurface.isSecureSupported(context)); && (!codecInfo.secure || DummySurface.isSecureSupported(context));
} }
@RequiresApi(17)
private void releaseDummySurface() { private void releaseDummySurface() {
if (surface == dummySurface) { if (surface == dummySurface) {
surface = null; surface = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment