From a7df6db770128fd0ba480cdae00de945feec9140 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 13 Dec 2017 12:42:56 +0100 Subject: [PATCH] Fixed android video crash when rotating device --- wrappers/java/jni.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrappers/java/jni.mustache b/wrappers/java/jni.mustache index 37178976f..8d19756b8 100644 --- a/wrappers/java/jni.mustache +++ b/wrappers/java/jni.mustache @@ -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 \ No newline at end of file +#endif