mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add a null check in DummySurface static initializer
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157958694
This commit is contained in:
parent
9796a09698
commit
cc748c30c7
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ public final class DummySurface extends Surface {
|
||||||
if (Util.SDK_INT >= 17) {
|
if (Util.SDK_INT >= 17) {
|
||||||
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||||
String extensions = EGL14.eglQueryString(display, EGL10.EGL_EXTENSIONS);
|
String extensions = EGL14.eglQueryString(display, EGL10.EGL_EXTENSIONS);
|
||||||
SECURE_SUPPORTED = extensions.contains("EGL_EXT_protected_content");
|
SECURE_SUPPORTED = extensions != null && extensions.contains("EGL_EXT_protected_content");
|
||||||
} else {
|
} else {
|
||||||
SECURE_SUPPORTED = false;
|
SECURE_SUPPORTED = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue