TT#14008 don't pass potential null pointer to media_update_stats

Change-Id: Ia687dd1f359e5680c1d8aa6efaac3c2e9c36d4e5
pull/1295/head
Richard Fuchs 4 years ago
parent a057fffe50
commit be11890cb4

@ -1574,7 +1574,8 @@ void rtcp_send_report(struct call_media *media, struct ssrc_ctx *ssrc_out) {
other_media = ps->rtcp_sink->media; other_media = ps->rtcp_sink->media;
media_update_stats(media); media_update_stats(media);
media_update_stats(other_media); if (other_media)
media_update_stats(other_media);
log_info_stream_fd(ps->selected_sfd); log_info_stream_fd(ps->selected_sfd);

Loading…
Cancel
Save