summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/id3/Android.mk
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2010-03-13 17:08:22 -0800
committerDave Sparks <davidsparks@android.com>2010-03-15 07:47:05 -0700
commite6335c904aafa17795b059a5d83b8b7db6c761c8 (patch)
treec5a9caa3324df0bf6db2fefc805f867d864cfff6 /media/libstagefright/id3/Android.mk
parentf0f7eb067f446927850bfc95ad1347cf2faaaf2f (diff)
downloadframeworks_base-e6335c904aafa17795b059a5d83b8b7db6c761c8.zip
frameworks_base-e6335c904aafa17795b059a5d83b8b7db6c761c8.tar.gz
frameworks_base-e6335c904aafa17795b059a5d83b8b7db6c761c8.tar.bz2
Add locking around AudioRecord release() function in JNI. Bug 2481952.
There is a potential threading issue where an app could call release() on two threads. This hack adds a static lock object that serializes access to the Java fields that contain the pointer to the native AudioRecord object and weak reference to the Java object. Also modifies finalize() to call release() so that both use the locking scheme. Change-Id: I09dcb19b7f501dc582e40e8718142b493eba2518
Diffstat (limited to 'media/libstagefright/id3/Android.mk')
0 files changed, 0 insertions, 0 deletions