aboutsummaryrefslogtreecommitdiff
path: root/call/video_send_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'call/video_send_stream.cc')
-rw-r--r--call/video_send_stream.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/call/video_send_stream.cc b/call/video_send_stream.cc
index 244d78089c..25513e4e4c 100644
--- a/call/video_send_stream.cc
+++ b/call/video_send_stream.cc
@@ -51,8 +51,13 @@ std::string VideoSendStream::StreamStats::ToString() const {
ss << "retransmit_bps: " << retransmit_bitrate_bps << ", ";
ss << "avg_delay_ms: " << avg_delay_ms << ", ";
ss << "max_delay_ms: " << max_delay_ms << ", ";
- ss << "cum_loss: " << rtcp_stats.packets_lost << ", ";
- ss << "max_ext_seq: " << rtcp_stats.extended_highest_sequence_number << ", ";
+ if (report_block_data) {
+ ss << "cum_loss: " << report_block_data->report_block().packets_lost
+ << ", ";
+ ss << "max_ext_seq: "
+ << report_block_data->report_block().extended_highest_sequence_number
+ << ", ";
+ }
ss << "nack: " << rtcp_packet_type_counts.nack_packets << ", ";
ss << "fir: " << rtcp_packet_type_counts.fir_packets << ", ";
ss << "pli: " << rtcp_packet_type_counts.pli_packets;