Index: webrtc/modules/audio_coding/test/EncodeDecodeTest.cc |
diff --git a/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc b/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc |
index 2bcae5a4251b922a054f65beb815faad55270e13..c290b9c24509ab7fb448feec6ccd6fbb085b1a3d 100644 |
--- a/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc |
+++ b/webrtc/modules/audio_coding/test/EncodeDecodeTest.cc |
@@ -132,11 +132,13 @@ void Receiver::Setup(AudioCodingModule *acm, RTPStream *rtpStream, |
for (int i = 0; i < noOfCodecs; i++) { |
EXPECT_EQ(0, acm->Codec(i, &recvCodec)); |
if (recvCodec.channels == channels) |
- EXPECT_EQ(0, acm->RegisterReceiveCodec(recvCodec)); |
+ EXPECT_EQ(true, acm->RegisterReceiveCodec(recvCodec.pltype, |
+ CodecInstToSdp(recvCodec))); |
// Forces mono/stereo for Opus. |
if (!strcmp(recvCodec.plname, "opus")) { |
recvCodec.channels = channels; |
- EXPECT_EQ(0, acm->RegisterReceiveCodec(recvCodec)); |
+ EXPECT_EQ(true, acm->RegisterReceiveCodec(recvCodec.pltype, |
+ CodecInstToSdp(recvCodec))); |
} |
} |