mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Add @RequiresApi to releaseDummySurface
dummySurface.release requires API 17. PiperOrigin-RevId: 403368448
This commit is contained in:
parent
18b1f3d624
commit
48518cf94d
1 changed files with 1 additions and 0 deletions
|
|
@ -1173,6 +1173,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||
&& (!codecInfo.secure || DummySurface.isSecureSupported(context));
|
||||
}
|
||||
|
||||
@RequiresApi(17)
|
||||
private void releaseDummySurface() {
|
||||
if (surface == dummySurface) {
|
||||
surface = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue