mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Fixed linphone_content_get_buffer
This commit is contained in:
parent
7a5a78c9b8
commit
f58dff4a2f
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ void linphone_content_set_subtype(LinphoneContent *content, const char *subtype)
|
|||
}
|
||||
|
||||
uint8_t * linphone_content_get_buffer(const LinphoneContent *content) {
|
||||
return (uint8_t *)L_GET_CPP_PTR_FROM_C_OBJECT(content)->getBody().data();
|
||||
return (uint8_t *)linphone_content_get_string_buffer(content);
|
||||
}
|
||||
|
||||
void linphone_content_set_buffer(LinphoneContent *content, const uint8_t *buffer, size_t size) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ void linphone_notify_received(LinphoneCore *lc, LinphoneEvent *lev, const char *
|
|||
if (!BC_ASSERT_PTR_NOT_NULL(content)) return;
|
||||
if (!linphone_content_is_multipart(content) && (!ua || !strstr(ua, "flexisip"))) { /*disable check for full presence server support*/
|
||||
/*hack to disable content checking for list notify */
|
||||
BC_ASSERT_STRING_EQUAL(notify_content,(const char*)linphone_content_get_buffer(content));
|
||||
BC_ASSERT_STRING_EQUAL((const char*)linphone_content_get_buffer(content),notify_content);
|
||||
}
|
||||
mgr=get_manager(lc);
|
||||
mgr->stat.number_of_NotifyReceived++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue