Chromium Code Reviews| Index: webrtc/modules/utility/source/coder.cc |
| diff --git a/webrtc/modules/utility/source/coder.cc b/webrtc/modules/utility/source/coder.cc |
| index 248cd488b6dea7e16552fcbd42da74adaac94250..f2ae43eb108a939f261ae17646a05c26fd307643 100644 |
| --- a/webrtc/modules/utility/source/coder.cc |
| +++ b/webrtc/modules/utility/source/coder.cc |
| @@ -45,8 +45,9 @@ int32_t AudioCoder::SetEncodeCodec(const CodecInst& codec_inst) { |
| } |
| int32_t AudioCoder::SetDecodeCodec(const CodecInst& codec_inst) { |
| - if (acm_->RegisterReceiveCodec( |
| - codec_inst, [&] { return rent_a_codec_.RentIsacDecoder(); }) == -1) { |
| + if (acm_->RegisterReceiveCodec(codec_inst, [&] { |
|
perkj_webrtc
2016/06/01 20:04:40
FYI capture all lambdas are not allowed according
kwiberg-webrtc
2016/06/02 08:23:16
They relaxed the rules slightly (some months ago I
|
| + return rent_a_codec_.RentIsacDecoder(codec_inst.plfreq); |
| + }) == -1) { |
| return -1; |
| } |
| memcpy(&receive_codec_, &codec_inst, sizeof(CodecInst)); |