From 733ce6a09d91d06ae9a8d9de68ab69ccbb0b0392 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 8 Oct 2015 14:04:06 +0200 Subject: [PATCH] Fix crash in report_bandwidth when built without video support. --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index af8d8c3a4..990fba60d 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -4048,7 +4048,7 @@ static void report_bandwidth(LinphoneCall *call, MediaStream *as, MediaStream *v call->stats[LINPHONE_CALL_STATS_VIDEO].updated|=LINPHONE_CALL_STATS_PERIODICAL_UPDATE; linphone_core_notify_call_stats_updated(call->core, call, &call->stats[LINPHONE_CALL_STATS_VIDEO]); call->stats[LINPHONE_CALL_STATS_VIDEO].updated=0; - update_local_stats(&call->stats[LINPHONE_CALL_STATS_VIDEO], vs); + if (vs) update_local_stats(&call->stats[LINPHONE_CALL_STATS_VIDEO], vs); ms_message( "Bandwidth usage for call [%p]:\n"