diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/channel.cc | 15 | ||||
-rw-r--r-- | audio/channel.h | 1 |
2 files changed, 6 insertions, 10 deletions
diff --git a/audio/channel.cc b/audio/channel.cc index d884e03173..9775243187 100644 --- a/audio/channel.cc +++ b/audio/channel.cc @@ -544,12 +544,12 @@ Channel::Channel(ProcessThread* module_process_thread, configuration.overhead_observer = this; configuration.receive_statistics = rtp_receive_statistics_.get(); configuration.bandwidth_callback = rtcp_observer_.get(); - if (pacing_enabled_) { - configuration.paced_sender = rtp_packet_sender_proxy_.get(); - configuration.transport_sequence_number_allocator = - seq_num_allocator_proxy_.get(); - configuration.transport_feedback_callback = feedback_observer_proxy_.get(); - } + + configuration.paced_sender = rtp_packet_sender_proxy_.get(); + configuration.transport_sequence_number_allocator = + seq_num_allocator_proxy_.get(); + configuration.transport_feedback_callback = feedback_observer_proxy_.get(); + configuration.event_log = event_log_; configuration.rtt_stats = rtcp_rtt_stats; configuration.retransmission_rate_limiter = @@ -1187,9 +1187,6 @@ int Channel::GetRTPStatistics(CallStatistics& stats) { void Channel::SetNACKStatus(bool enable, int maxNumberOfPackets) { // None of these functions can fail. - // If pacing is enabled we always store packets. - if (!pacing_enabled_) - _rtpRtcpModule->SetStorePacketsStatus(enable, maxNumberOfPackets); rtp_receive_statistics_->SetMaxReorderingThreshold(maxNumberOfPackets); if (enable) audio_coding_->EnableNack(maxNumberOfPackets); diff --git a/audio/channel.h b/audio/channel.h index 562e79ef04..b9694aa19f 100644 --- a/audio/channel.h +++ b/audio/channel.h @@ -401,7 +401,6 @@ class Channel rtc::CriticalSection assoc_send_channel_lock_; Channel* associated_send_channel_ RTC_GUARDED_BY(assoc_send_channel_lock_); - bool pacing_enabled_ = true; PacketRouter* packet_router_ = nullptr; std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; |