mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 03:39:27 +00:00
Fix preview window global refs on Android.
This commit is contained in:
parent
6528037a75
commit
4218b92e0a
2 changed files with 7 additions and 7 deletions
|
|
@ -1932,13 +1932,13 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoWindowId(JNIEnv*
|
|||
,jlong lc
|
||||
,jobject obj) {
|
||||
jobject oldWindow = (jobject) linphone_core_get_native_video_window_id((LinphoneCore*)lc);
|
||||
if (oldWindow != NULL) {
|
||||
env->DeleteGlobalRef(oldWindow);
|
||||
}
|
||||
if (obj != NULL) {
|
||||
obj = env->NewGlobalRef(obj);
|
||||
}
|
||||
linphone_core_set_native_video_window_id((LinphoneCore*)lc,(unsigned long)obj);
|
||||
if (oldWindow != NULL) {
|
||||
env->DeleteGlobalRef(oldWindow);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPreviewWindowId(JNIEnv* env
|
||||
|
|
@ -1946,13 +1946,13 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPreviewWindowId(JNIEn
|
|||
,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);
|
||||
if (oldWindow != NULL) {
|
||||
env->DeleteGlobalRef(oldWindow);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDeviceRotation(JNIEnv* env
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 0c0a3a36d2352d53053ab8b9255b48b6b05843ae
|
||||
Subproject commit cab341d59bc4d37f82ddccbfcf1ae2563f9c5028
|
||||
Loading…
Add table
Reference in a new issue