| Index: webrtc/modules/audio_device/android/ensure_initialized.cc
|
| diff --git a/webrtc/modules/audio_device/android/ensure_initialized.cc b/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| index b63aec1f27d87a38607f6acc13412245b51d9300..27a98d2952a8e6f25164ec52911cd585f4219e96 100644
|
| --- a/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| +++ b/webrtc/modules/audio_device/android/ensure_initialized.cc
|
| @@ -31,7 +31,7 @@ void EnsureInitializedOnce() {
|
| JNIEnv* jni = ::base::android::AttachCurrentThread();
|
| JavaVM* jvm = NULL;
|
| RTC_CHECK_EQ(0, jni->GetJavaVM(&jvm));
|
| - jobject context = ::base::android::GetApplicationContext();
|
| + jobject context = ::base::android::GetApplicationContext().obj();
|
|
|
| // Initialize the Java environment (currently only used by the audio manager).
|
| webrtc::JVM::Initialize(jvm, context);
|
|
|