mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Fixed android video crash when rotating device
This commit is contained in:
parent
98e5be44d1
commit
a7df6db770
1 changed files with 3 additions and 3 deletions
|
|
@ -481,7 +481,7 @@ void Java_org_linphone_core_CallImpl_setNativeVideoWindowId(JNIEnv *env, jobject
|
|||
|
||||
void Java_org_linphone_core_CoreImpl_setNativePreviewWindowId(JNIEnv *env, jobject thiz, jlong ptr, jobject id) {
|
||||
LinphoneCore *cptr = (LinphoneCore*)ptr;
|
||||
jobject oldWindow = (jobject) linphone_core_get_native_video_window_id(cptr);
|
||||
jobject oldWindow = (jobject) linphone_core_get_native_preview_window_id(cptr);
|
||||
if (oldWindow == id) {
|
||||
ms_warning("Java_org_linphone_core_CoreImpl_setNativePreviewWindowId(): new id (%p) is the same as the current one, skipping...", id);
|
||||
return;
|
||||
|
|
@ -499,7 +499,7 @@ void Java_org_linphone_core_CoreImpl_setNativePreviewWindowId(JNIEnv *env, jobje
|
|||
|
||||
void Java_org_linphone_core_CoreImpl_setNativeVideoWindowId(JNIEnv *env, jobject thiz, jlong ptr, jobject id) {
|
||||
LinphoneCore *cptr = (LinphoneCore*)ptr;
|
||||
jobject oldWindow = (jobject) linphone_core_get_native_preview_window_id(cptr);
|
||||
jobject oldWindow = (jobject) linphone_core_get_native_video_window_id(cptr);
|
||||
if (oldWindow == id) {
|
||||
ms_warning("Java_org_linphone_core_CoreImpl_setNativeVideoWindowId(): new id (%p) is the same as the current one, skipping...", id);
|
||||
return;
|
||||
|
|
@ -517,4 +517,4 @@ void Java_org_linphone_core_CoreImpl_setNativeVideoWindowId(JNIEnv *env, jobject
|
|||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue