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

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

Issue 1699903003: Update bitrate only when we have incoming packet. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix lint Created 4 years, 10 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 | « webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc
index 15ca42dda92e134b992b1b40a1de87dc48ef4a66..fb5d9d03c6e9eb8f38b8add5e8196cdacf00b05e 100644
--- a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc
+++ b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc
@@ -52,22 +52,15 @@ void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms,
}
rtc::CritScope cs(&lock_);
media_ssrc_ = header.ssrc;
+
OnPacketArrival(header.extension.transportSequenceNumber, arrival_time_ms);
}
-void RemoteEstimatorProxy::RemoveStream(unsigned int ssrc) {}
-
bool RemoteEstimatorProxy::LatestEstimate(std::vector<unsigned int>* ssrcs,
unsigned int* bitrate_bps) const {
return false;
}
-bool RemoteEstimatorProxy::GetStats(
- ReceiveBandwidthEstimatorStats* output) const {
- return false;
-}
-
-
int64_t RemoteEstimatorProxy::TimeUntilNextProcess() {
int64_t now = clock_->TimeInMilliseconds();
int64_t time_until_next = 0;
@@ -118,6 +111,7 @@ void RemoteEstimatorProxy::OnPacketArrival(uint16_t sequence_number,
}
RTC_DCHECK(packet_arrival_times_.end() == packet_arrival_times_.find(seq));
+
packet_arrival_times_[seq] = arrival_time;
}
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698