summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-06-08 19:54:15 -0700
committerMathias Agopian <mathias@google.com>2010-06-08 20:10:02 -0700
commit5e14010b1fc066dfcbc0a577d59492687c99667d (patch)
tree221d256bf258e97b3e7e7c953a679a9104792374 /media/jni
parent1debc66521f699bbf0a8eb80cababaef8bc63607 (diff)
downloadframeworks_base-5e14010b1fc066dfcbc0a577d59492687c99667d.zip
frameworks_base-5e14010b1fc066dfcbc0a577d59492687c99667d.tar.gz
frameworks_base-5e14010b1fc066dfcbc0a577d59492687c99667d.tar.bz2
allow re-targetting of surfaces
Surfaces can now be parcelized and sent to remote processes. When a surface crosses a process boundary, it looses its connection with the current process and gets attached to the new one. Change-Id: I39c7b055bcd3ea1162ef2718d3d4b866bf7c81c0
Diffstat (limited to 'media/jni')
-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 8cf2e51..3d90650 100644
--- a/media/jni/android_media_MediaRecorder.cpp
+++ b/media/jni/android_media_MediaRecorder.cpp
@@ -318,7 +318,7 @@ android_media_MediaRecorder_prepare(JNIEnv *env, jobject thiz)
jobject surface = env->GetObjectField(thiz, fields.surface);
if (surface != NULL) {
const sp<Surface>& native_surface = get_surface(env, surface);
- LOGI("prepare: surface=%p (id=%d)", native_surface.get(), native_surface->ID());
+ LOGI("prepare: surface=%p (identity=%d)", native_surface.get(), native_surface->getIdentity());
if (process_media_recorder_call(env, mr->setPreviewSurface(native_surface), "java/lang/RuntimeException", "setPreviewSurface failed.")) {
return;
}