Merge "Don't crash if the MediaCodecList is null."
This commit is contained in:
@@ -105,6 +105,7 @@ static const JavaMediaCodecListWrapper *getCodecList(JNIEnv *env) {
|
|||||||
// This should never happen unless something is really wrong
|
// This should never happen unless something is really wrong
|
||||||
jniThrowException(
|
jniThrowException(
|
||||||
env, "java/lang/RuntimeException", "cannot get MediaCodecList");
|
env, "java/lang/RuntimeException", "cannot get MediaCodecList");
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sListWrapper.reset(new JavaMediaCodecListWrapper(mcl));
|
sListWrapper.reset(new JavaMediaCodecListWrapper(mcl));
|
||||||
|
|||||||
Reference in New Issue
Block a user