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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2686043006: WebRtcVoiceMediaChannel::AddRecvStream: Don't call SetRecPayloadType (Closed)
Patch Set: rebase Created 3 years, 9 months 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
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index d2b30ca8f7d41c07b7ea406e6f26a84d59699ca5..3b562f91561c83927ff973b13e51622ea10a1166 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -987,9 +987,10 @@ int32_t Channel::Init() {
return -1;
}
- // --- Register all supported codecs to the receiving side of the
- // RTP/RTCP module
+ return 0;
+}
+void Channel::RegisterLegacyCodecs() {
CodecInst codec;
const uint8_t nSupportedCodecs = AudioCodingModule::NumberOfCodecs();
@@ -1041,8 +1042,6 @@ int32_t Channel::Init() {
}
}
}
-
- return 0;
}
void Channel::Terminate() {
@@ -1360,6 +1359,11 @@ int32_t Channel::GetVADStatus(bool& enabledVAD,
return 0;
}
+void Channel::SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs) {
+ rtp_payload_registry_->SetAudioReceivePayloads(codecs);
+ audio_coding_->SetReceiveCodecs(codecs);
+}
+
int32_t Channel::SetRecPayloadType(const CodecInst& codec) {
return SetRecPayloadType(codec.pltype, CodecInstToSdp(codec));
}
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698