diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index b7d5917fb..2d90b81e8 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -4467,9 +4467,9 @@ static void report_bandwidth_for_stream(LinphoneCall *call, MediaStream *ms, Lin LinphoneCallStats *stats = NULL; if (type == LinphoneStreamTypeAudio) { stats = call->audio_stats; - } else if (type == LinphoneStreamTypeAudio) { + } else if (type == LinphoneStreamTypeVideo) { stats = call->video_stats; - } else if (type == LinphoneStreamTypeAudio) { + } else if (type == LinphoneStreamTypeText) { stats = call->text_stats; } else { return;