From 76ccd7c138b7ddd3d429fb934938778ec60361c0 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 21 Sep 2017 17:14:40 +0200 Subject: [PATCH] Fixing warning in linphonecall.c linphone_call_handle_stream_events - cast double to float --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 4fc887048..cb2253672 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -4887,7 +4887,7 @@ void linphone_call_handle_stream_events(LinphoneCall *call, int stream_index){ ms_message("Video bandwidth estimation is %i kbit/s", (int)evd->info.video_bandwidth_available / 1000); /* If this event happens then it should be a video stream */ if (stream_index == call->main_video_stream_index) - stats->estimated_download_bandwidth = (float)(evd->info.video_bandwidth_available)*1e-3; + stats->estimated_download_bandwidth = (float)(evd->info.video_bandwidth_available)*(float)1e-3; } ortp_event_destroy(ev); }