mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 07:08:11 +00:00
Fix crash on wp8
This commit is contained in:
parent
a62d658b33
commit
a95253fc94
1 changed files with 2 additions and 2 deletions
|
|
@ -2642,10 +2642,10 @@ uint64_t linphone_call_stats_get_late_packets_cumulative_number(const LinphoneCa
|
|||
if (!stats || !call)
|
||||
return 0;
|
||||
memset(&rtp_stats, 0, sizeof(rtp_stats));
|
||||
if (stats->type == LINPHONE_CALL_STATS_AUDIO)
|
||||
if (stats->type == LINPHONE_CALL_STATS_AUDIO && call->audiostream != NULL)
|
||||
audio_stream_get_local_rtp_stats(call->audiostream, &rtp_stats);
|
||||
#ifdef VIDEO_ENABLED
|
||||
else
|
||||
else if (call->videostream != NULL)
|
||||
video_stream_get_local_rtp_stats(call->videostream, &rtp_stats);
|
||||
#endif
|
||||
return rtp_stats.outoftime;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue