Let StreamStatistician::GetReceiveStreamDataCounters return counters by value
Tbr: ossu@webrtc.org # Trivial update of audio/ call site Bug: None Change-Id: I3763e83f6c0e18be1b696dd7b2ba5841045c9159 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148820 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28830}
This commit is contained in:
@ -306,10 +306,10 @@ absl::optional<int> StreamStatisticianImpl::GetFractionLostInPercent() const {
|
||||
return 100 * static_cast<int64_t>(cumulative_loss_) / expected_packets;
|
||||
}
|
||||
|
||||
void StreamStatisticianImpl::GetReceiveStreamDataCounters(
|
||||
StreamDataCounters* data_counters) const {
|
||||
StreamDataCounters StreamStatisticianImpl::GetReceiveStreamDataCounters()
|
||||
const {
|
||||
rtc::CritScope cs(&stream_lock_);
|
||||
*data_counters = receive_counters_;
|
||||
return receive_counters_;
|
||||
}
|
||||
|
||||
uint32_t StreamStatisticianImpl::BitrateReceived() const {
|
||||
|
||||
Reference in New Issue
Block a user