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

Unified Diff: webrtc/audio/audio_send_stream.cc

Issue 2530383002: Reland "Update rtt on audio only calls". (Closed)
Patch Set: Fix for memory access error in ModuleRtpRtcpImpl::Process. Created 4 years, 1 month 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/audio/audio_send_stream.cc
diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc
index b031762b4cecd173e21766e4ab3f91c070a37fd9..95df63b98bda396f09fa6ec691463b493434f763 100644
--- a/webrtc/audio/audio_send_stream.cc
+++ b/webrtc/audio/audio_send_stream.cc
@@ -47,7 +47,8 @@ AudioSendStream::AudioSendStream(
rtc::TaskQueue* worker_queue,
CongestionController* congestion_controller,
BitrateAllocator* bitrate_allocator,
- RtcEventLog* event_log)
+ RtcEventLog* event_log,
+ RtcpRttStats* rtcp_rtt_stats)
: worker_queue_(worker_queue),
config_(config),
audio_state_(audio_state),
@@ -60,6 +61,7 @@ AudioSendStream::AudioSendStream(
VoiceEngineImpl* voe_impl = static_cast<VoiceEngineImpl*>(voice_engine());
channel_proxy_ = voe_impl->GetChannelProxy(config_.voe_channel_id);
channel_proxy_->SetRtcEventLog(event_log);
+ channel_proxy_->SetRtcpRttStats(rtcp_rtt_stats);
channel_proxy_->RegisterSenderCongestionControlObjects(
congestion_controller->pacer(),
congestion_controller->GetTransportFeedbackObserver(),
@@ -94,6 +96,7 @@ AudioSendStream::~AudioSendStream() {
channel_proxy_->DeRegisterExternalTransport();
channel_proxy_->ResetCongestionControlObjects();
channel_proxy_->SetRtcEventLog(nullptr);
+ channel_proxy_->SetRtcpRttStats(nullptr);
}
void AudioSendStream::Start() {

Powered by Google App Engine
This is Rietveld 408576698