summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-06-23 17:30:11 -0700
committerDave Sparks <davidsparks@android.com>2009-06-24 07:58:27 -0700
commit5e27115995c4506dddf4f1271effd4fb4c935ad3 (patch)
treedd67833f50a64768b2bf25ec4d9dd5daa3a2dd78 /media
parent5f80605a0b866f34c74955e190909bd6ab5d992e (diff)
downloadframeworks_base-5e27115995c4506dddf4f1271effd4fb4c935ad3.zip
frameworks_base-5e27115995c4506dddf4f1271effd4fb4c935ad3.tar.gz
frameworks_base-5e27115995c4506dddf4f1271effd4fb4c935ad3.tar.bz2
Use a ref-counted callback interface for Camera.
This allows the camera service to hang onto the callback interface until all callbacks have been processed. This prevents problems where pending callbacks in binder worker threads are processed after the Java camera object and its associated native resources have been released. Bug 1884362
Diffstat (limited to 'media')
-rw-r--r--media/jni/android_media_MediaRecorder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/android_media_MediaRecorder.cpp b/media/jni/android_media_MediaRecorder.cpp
index 7bfeb83..0273a5a 100644
--- a/media/jni/android_media_MediaRecorder.cpp
+++ b/media/jni/android_media_MediaRecorder.cpp
@@ -41,7 +41,7 @@ using namespace android;
// ----------------------------------------------------------------------------
// helper function to extract a native Camera object from a Camera Java object
-extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct camera_context_t** context);
+extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context);
struct fields_t {
jfieldID context;