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

Unified Diff: media/cast/rtcp/rtcp.cc

Issue 362123005: Cast: Update simulator tool with more inputs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Diff Created 6 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
Index: media/cast/rtcp/rtcp.cc
diff --git a/media/cast/rtcp/rtcp.cc b/media/cast/rtcp/rtcp.cc
index 480b2ac39904aa97a3d33d35e07f48f3bc804746..f89b771a7df4a50a4e37582ea312563342b2a8f8 100644
--- a/media/cast/rtcp/rtcp.cc
+++ b/media/cast/rtcp/rtcp.cc
@@ -5,7 +5,6 @@
#include "media/cast/rtcp/rtcp.h"
#include "base/big_endian.h"
-#include "base/rand_util.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_defines.h"
#include "media/cast/cast_environment.h"
@@ -384,12 +383,8 @@ bool Rtcp::Rtt(base::TimeDelta* rtt, base::TimeDelta* avg_rtt,
}
void Rtcp::UpdateNextTimeToSendRtcp() {
- int random = base::RandInt(0, 999);
- base::TimeDelta time_to_next =
- (rtcp_interval_ / 2) + (rtcp_interval_ * random / 1000);
-
base::TimeTicks now = cast_environment_->Clock()->NowTicks();
- next_time_to_send_rtcp_ = now + time_to_next;
+ next_time_to_send_rtcp_ = now + rtcp_interval_;
}
void Rtcp::OnReceivedReceiverLog(const RtcpReceiverLogMessage& receiver_log) {

Powered by Google App Engine
This is Rietveld 408576698