Merge "Don't crash if the MediaCodecList is null."

This commit is contained in:
Treehugger Robot
2021-03-05 16:42:29 +00:00
committed by Gerrit Code Review

View File

@@ -105,6 +105,7 @@ static const JavaMediaCodecListWrapper *getCodecList(JNIEnv *env) {
// This should never happen unless something is really wrong
jniThrowException(
env, "java/lang/RuntimeException", "cannot get MediaCodecList");
return NULL;
}
sListWrapper.reset(new JavaMediaCodecListWrapper(mcl));