Merge change I14b9785e
* changes: Fix SoundPool restart problem CheckJNI issue.
This commit is contained in:
@@ -283,9 +283,13 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
|
||||
"(Ljava/lang/Object;IIILjava/lang/Object;)V");
|
||||
if (fields.mPostEvent == NULL) {
|
||||
LOGE("Can't find android/media/SoundPool.postEventFromNative");
|
||||
return -1;
|
||||
goto bail;
|
||||
}
|
||||
|
||||
// create a reference to class. Technically, we're leaking this reference
|
||||
// since it's a static object.
|
||||
fields.mSoundPoolClass = (jclass) env->NewGlobalRef(clazz);
|
||||
|
||||
if (AndroidRuntime::registerNativeMethods(env, kClassPathName, gMethods, NELEM(gMethods)) < 0)
|
||||
goto bail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user