mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Fully clean up resources in EGLSurfaceTexture
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201376315
This commit is contained in:
parent
c14d590412
commit
b7d149604e
1 changed files with 4 additions and 0 deletions
|
|
@ -121,6 +121,10 @@ public final class EGLSurfaceTexture implements SurfaceTexture.OnFrameAvailableL
|
|||
if (context != null) {
|
||||
EGL14.eglDestroyContext(display, context);
|
||||
}
|
||||
// EGL14.eglReleaseThread could crash before Android K (see [internal: b/11327779]).
|
||||
if (Util.SDK_INT >= 19) {
|
||||
EGL14.eglReleaseThread();
|
||||
}
|
||||
display = null;
|
||||
context = null;
|
||||
surface = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue