From f8f78b1316443335209cf5b255863279c017e285 Mon Sep 17 00:00:00 2001 From: "henrike@webrtc.org" Date: Wed, 2 Oct 2013 18:41:06 +0000 Subject: [PATCH] Android OpenSL: Fixes faulty assertion in jni-code. BUG=2452 R=fischman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2342004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4906 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_device/android/audio_manager_jni.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_device/android/audio_manager_jni.cc b/webrtc/modules/audio_device/android/audio_manager_jni.cc index b8dec2a932..b04b744357 100644 --- a/webrtc/modules/audio_device/android/audio_manager_jni.cc +++ b/webrtc/modules/audio_device/android/audio_manager_jni.cc @@ -25,7 +25,7 @@ class AttachThreadScoped { if (ret_val == JNI_EDETACHED) { // Attach the thread to the Java VM. ret_val = jvm_->AttachCurrentThread(&env_, NULL); - attached_ = ret_val > 0; + attached_ = ret_val == JNI_OK; assert(attached_); } }