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

Unified Diff: webrtc/modules/remote_bitrate_estimator/send_time_history.cc

Issue 2997883002: Video/Screenshare loopback tool.
Patch Set: Rebase Created 3 years, 4 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
Index: webrtc/modules/remote_bitrate_estimator/send_time_history.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/send_time_history.cc b/webrtc/modules/remote_bitrate_estimator/send_time_history.cc
index 4cc7a7c1c20c5a009757ae1f5e27742448b6e0f0..ea1ccaa99b69572190091cd4c839d746456dabe2 100644
--- a/webrtc/modules/remote_bitrate_estimator/send_time_history.cc
+++ b/webrtc/modules/remote_bitrate_estimator/send_time_history.cc
@@ -41,9 +41,16 @@ bool SendTimeHistory::OnSentPacket(uint16_t sequence_number,
int64_t send_time_ms) {
int64_t unwrapped_seq_num = seq_num_unwrapper_.Unwrap(sequence_number);
auto it = history_.find(unwrapped_seq_num);
- if (it == history_.end())
+ if (it == history_.end()) {
+ Print("No history for %u", sequence_number);
return false;
+ }
it->second.send_time_ms = send_time_ms;
+ int cluster_id = it->second.pacing_info.probe_cluster_id;
+ if (cluster_id > -1) {
+ Print("Sent packet %u of size %lu for probe cluster %d", sequence_number,
+ it->second.payload_size, cluster_id);
+ }
return true;
}
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc ('k') | webrtc/rtc_tools/event_log_visualizer/analyzer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698