commit | c4905fb72a01d5fe5788cc33d847c31b039468e3 | [log] [tgz] |
---|---|---|
author | Alex Glaznev <glaznev@google.com> | Mon Apr 20 16:54:42 2015 -0700 |
committer | Alex Glaznev <glaznev@google.com> | Mon Apr 20 23:54:25 2015 +0000 |
tree | 37dd12cd1f54ee9dd95212e3625829f54bbd4c56 | |
parent | ac7d97fea6a6781ad3a77c8653e62ea9ec1f188c [diff] |
Fix race condition in Android camera JNI code. AndroidVideoCapturerJni dtor is called on signaling thread and may destroy JNI global refs while processing late camera frame arrival in ReturnBuffer_w() in worker thread. Fix this by waiting for all function invoked on worker thread to complete in camera JNI dtor. R=wzh@webrtc.org Review URL: https://webrtc-codereview.appspot.com/49099004 Cr-Commit-Position: refs/heads/master@{#9037}