Index: webrtc/sdk/android/src/jni/peerconnection_jni.cc |
diff --git a/webrtc/sdk/android/src/jni/peerconnection_jni.cc b/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
index 8c20337179ce3f051987015458a89336f5ddee44..708e65db46d400fdd9dc32cd8fc2b9bb0659576c 100644 |
--- a/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
+++ b/webrtc/sdk/android/src/jni/peerconnection_jni.cc |
@@ -1139,7 +1139,7 @@ JOW(jlong, PeerConnectionFactory_nativeCreateObserver)( |
return (jlong)new PCOJava(jni, j_observer); |
} |
-JOW(void, PeerConnectionFactory_nativeInitializeAndroidGlobals) |
+JOW(void, PeerConnectionFactory_initializeAndroidGlobals) |
(JNIEnv* jni, |
jclass, |
jobject context, |
@@ -1149,7 +1149,7 @@ JOW(void, PeerConnectionFactory_nativeInitializeAndroidGlobals) |
if (!factory_static_initialized) { |
RTC_DCHECK(j_application_context == nullptr); |
j_application_context = NewGlobalRef(jni, context); |
- webrtc::JVM::Initialize(GetJVM()); |
+ webrtc::JVM::Initialize(GetJVM(), context); |
factory_static_initialized = true; |
} |
} |