Commit c88983da authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed compil for android armv7, issue was cast increases required alignment from 4 to 8

parent 3af62d98
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment