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
This commit is contained in:
parent
9b5c807272
commit
f8f78b1316
@ -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_);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user