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

Unified Diff: webrtc/audio/audio_send_stream.cc

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Add unittest for changing transport overhead. 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 ad6366bc8095deebe830b33c9115cf77afe83adf..087339a4759afb428dbaf8ebef67cbfd1ce8d335 100644
--- a/webrtc/audio/audio_send_stream.cc
+++ b/webrtc/audio/audio_send_stream.cc
@@ -268,6 +268,11 @@ const webrtc::AudioSendStream::Config& AudioSendStream::config() const {
return config_;
}
+void AudioSendStream::SetTransportOverhead(int transport_overhead_per_packet) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel_proxy_->SetTransportOverhead(transport_overhead_per_packet);
+}
+
VoiceEngine* AudioSendStream::voice_engine() const {
internal::AudioState* audio_state =
static_cast<internal::AudioState*>(audio_state_.get());

Powered by Google App Engine
This is Rietveld 408576698