Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: webrtc/api/rtcstatscollector.cc

Issue 2559973002: RTCInboundRTPStreamStats.packetsLost set by RTCStatsCollector. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstatscollector.cc
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index ec7cbe0bb3ecd646de5f69e7ab2ff8aa608dd7a6..fd756f7e0f6ae1e2602ee264caf0623e4d067bb6 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -150,6 +150,8 @@ void SetInboundRTPStreamStatsFromMediaReceiverInfo(
static_cast<uint32_t>(media_receiver_info.packets_rcvd);
inbound_stats->bytes_received =
static_cast<uint64_t>(media_receiver_info.bytes_rcvd);
+ inbound_stats->packets_lost =
+ static_cast<uint32_t>(media_receiver_info.packets_lost);
hbos 2016/12/08 15:16:30 This is the same value used by the old getStats fo
inbound_stats->fraction_lost =
static_cast<double>(media_receiver_info.fraction_lost);
}
« no previous file with comments | « webrtc/api/rtcstats_integrationtest.cc ('k') | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698