Index: webrtc/voice_engine/channel.cc |
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc |
index dc93dc7e06c30483a10ee658d78da4d9ca2e3c89..100832de3adeb2dc986cd255dc271a109ea6bbb7 100644 |
--- a/webrtc/voice_engine/channel.cc |
+++ b/webrtc/voice_engine/channel.cc |
@@ -940,6 +940,7 @@ Channel::Channel(int32_t channelId, |
RtpRtcp::Configuration configuration; |
configuration.audio = true; |
configuration.outgoing_transport = this; |
+ configuration.overhead_observer = this; |
configuration.receive_statistics = rtp_receive_statistics_.get(); |
configuration.bandwidth_callback = rtcp_observer_.get(); |
if (pacing_enabled_) { |
@@ -2881,6 +2882,14 @@ void Channel::SetTransportOverhead(int transport_overhead_per_packet) { |
_rtpRtcpModule->SetTransportOverhead(transport_overhead_per_packet); |
} |
+void Channel::OnOverheadChanged(size_t overhead_bytes_per_packet) { |
+ audio_coding_->ModifyEncoder([&](std::unique_ptr<AudioEncoder>* encoder) { |
+ if (*encoder) { |
+ (*encoder)->OnReceivedOverhead(overhead_bytes_per_packet); |
+ } |
+ }); |
+} |
+ |
int Channel::RegisterExternalMediaProcessing(ProcessingTypes type, |
VoEMediaProcess& processObject) { |
WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |