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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2686043006: WebRtcVoiceMediaChannel::AddRecvStream: Don't call SetRecPayloadType (Closed)
Patch Set: Discard packets when updating payload type map 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
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 1d73db6d396a29ab1bc3ca12beee0c8ce1106ae0..0071a1eca61effd12dedf240c3fba87b14248fd9 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -1323,6 +1323,14 @@ int32_t Channel::GetVADStatus(bool& enabledVAD,
return 0;
}
+bool Channel::SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs) {
+ if (!rtp_payload_registry_->SetAudioReceivePayloads(codecs)) {
the sun 2017/03/14 20:07:01 If you remove the return value from the above call
kwiberg-webrtc 2017/03/16 10:24:12 Acknowledged. I'll remove as many of them as I can
+ return false;
+ }
+ audio_coding_->SetReceiveCodecs(codecs);
+ return true;
+}
+
int32_t Channel::SetRecPayloadType(const CodecInst& codec) {
return SetRecPayloadType(codec.pltype, CodecInstToSdp(codec));
}

Powered by Google App Engine
This is Rietveld 408576698