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

Unified Diff: webrtc/pc/statscollector.cc

Issue 2943073002: Fix uploading of available send bitrate statistics. (Closed)
Patch Set: Fixes uploading of available send bitrate statistics and adds unit test verifying audio BWE reportiā€¦ Created 3 years, 6 months 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 | « no previous file | webrtc/pc/statscollector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/statscollector.cc
diff --git a/webrtc/pc/statscollector.cc b/webrtc/pc/statscollector.cc
index c0b18de6a1f7904ee108a18108547497b43dfd11..9454cdd42ef059d05f7b6b979deea79cca95bbdd 100644
--- a/webrtc/pc/statscollector.cc
+++ b/webrtc/pc/statscollector.cc
@@ -780,10 +780,9 @@ void StatsCollector::ExtractBweInfo() {
bwe_info.bucket_delay = call_stats.pacer_delay_ms;
// Fill in target encoder bitrate, actual encoder bitrate, rtx bitrate, etc.
// TODO(holmer): Also fill this in for audio.
- if (!pc_->session()->video_channel()) {
- return;
+ if (pc_->session()->video_channel()) {
+ pc_->session()->video_channel()->FillBitrateInfo(&bwe_info);
}
- pc_->session()->video_channel()->FillBitrateInfo(&bwe_info);
StatsReport::Id report_id(StatsReport::NewBandwidthEstimationId());
StatsReport* report = reports_.FindOrAddNew(report_id);
ExtractStats(bwe_info, stats_gathering_started_, report);
« no previous file with comments | « no previous file | webrtc/pc/statscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698