mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
Fixed compil for android armv7, issue was cast increases required alignment from 4 to 8
This commit is contained in:
parent
3af62d98d2
commit
c88983da3d
4 changed files with 4 additions and 4 deletions
|
|
@ -2317,7 +2317,7 @@ LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable,
|
|||
}
|
||||
|
||||
LinphoneCore *linphone_core_ref(LinphoneCore *lc) {
|
||||
return (LinphoneCore *)belle_sip_object_ref(BELLE_SIP_OBJECT(lc));
|
||||
return reinterpret_cast<LinphoneCore *>(belle_sip_object_ref(BELLE_SIP_OBJECT(lc)));
|
||||
}
|
||||
|
||||
void linphone_core_unref(LinphoneCore *lc) {
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ int parse_hostname_to_addr(const char *server, struct sockaddr_storage *ss, sock
|
|||
return -1;
|
||||
}
|
||||
if (!res) return -1;
|
||||
memcpy(ss,res->ai_addr,res->ai_addrlen);
|
||||
memcpy(ss,res->ai_addr,(size_t)res->ai_addrlen);
|
||||
*socklen=(socklen_t)res->ai_addrlen;
|
||||
freeaddrinfo(res);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ bool_t _linphone_call_stats_rtcp_received_via_mux (const LinphoneCallStats *stat
|
|||
// =============================================================================
|
||||
|
||||
LinphoneCallStats *linphone_call_stats_ref (LinphoneCallStats* stats) {
|
||||
return (LinphoneCallStats*) belle_sip_object_ref(stats);
|
||||
return reinterpret_cast<LinphoneCallStats *>(belle_sip_object_ref(stats));
|
||||
}
|
||||
|
||||
void linphone_call_stats_unref (LinphoneCallStats* stats) {
|
||||
|
|
|
|||
|
|
@ -864,7 +864,7 @@ static void call_with_specified_codec_bitrate(void) {
|
|||
int max_bw=50;
|
||||
|
||||
#ifdef __arm__
|
||||
if (ms_factory_get_cpu_count(marie->lc->factory) <2) { /*2 opus codec channel + resampler is too much for a single core*/
|
||||
if (ms_factory_get_cpu_count(linphone_core_get_ms_factory(marie->lc)) <2) { /*2 opus codec channel + resampler is too much for a single core*/
|
||||
#ifndef __ANDROID__
|
||||
codec = "speex";
|
||||
rate = 8000;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue