mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Do not call linphone_content_get_buffer on multipart body messages (JNI Wrapper)
This commit is contained in:
parent
01ee6e21f2
commit
4738dd78a4
1 changed files with 1 additions and 1 deletions
|
|
@ -4969,7 +4969,7 @@ static jobject create_java_linphone_content(JNIEnv *env, const LinphoneContent *
|
|||
jname = ((tmp = linphone_content_get_name(icontent))) ? env->NewStringUTF(tmp) : NULL;
|
||||
jsize = (jint) linphone_content_get_size(icontent);
|
||||
|
||||
data = linphone_content_get_buffer(icontent);
|
||||
data = (!linphone_content_is_multipart(icontent) ? linphone_content_get_buffer(icontent) : NULL);
|
||||
if (data){
|
||||
jdata = env->NewByteArray(linphone_content_get_size(icontent));
|
||||
env->SetByteArrayRegion(jdata, 0, linphone_content_get_size(icontent), (jbyte*)data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue