Take a reference on android camera preview.

This commit is contained in:
Guillaume Beraudo 2011-10-17 15:09:50 +02:00
parent e740628ab7
commit 67daaaa14d
2 changed files with 8 additions and 1 deletions

View file

@ -1205,6 +1205,13 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPreviewWindowId(JNIEn
,jobject thiz
,jlong lc
,jobject obj) {
jobject oldWindow = (jobject) linphone_core_get_native_preview_window_id((LinphoneCore*)lc);
if (oldWindow != NULL) {
env->DeleteGlobalRef(oldWindow);
}
if (obj != NULL) {
obj = env->NewGlobalRef(obj);
}
linphone_core_set_native_preview_window_id((LinphoneCore*)lc,(unsigned long)obj);
}

@ -1 +1 @@
Subproject commit 3073a0ed620856744e2718cc94868ed76c5e0a5c
Subproject commit 66355f56a793377d02d7a6e30604fbcd23378bd3