Index: webrtc/audio/audio_receive_stream.cc |
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc |
index 8c073d9c8c3250e29d132d4cbb27566c999687da..f64d3051e63c3d66eb1ffc09389f3f107c6e2f98 100644 |
--- a/webrtc/audio/audio_receive_stream.cc |
+++ b/webrtc/audio/audio_receive_stream.cc |
@@ -94,10 +94,7 @@ AudioReceiveStream::AudioReceiveStream( |
channel_proxy_->GetAudioDecoderFactory()); |
channel_proxy_->RegisterExternalTransport(config.rtcp_send_transport); |
- |
- for (const auto& kv : config.decoder_map) { |
- channel_proxy_->SetRecPayloadType(kv.first, kv.second); |
- } |
+ channel_proxy_->SetReceiveCodecs(config.decoder_map); |
for (const auto& extension : config.rtp.extensions) { |
if (extension.uri == RtpExtension::kAudioLevelUri) { |