Index: talk/media/webrtc/fakewebrtccall.cc |
diff --git a/talk/media/webrtc/fakewebrtccall.cc b/talk/media/webrtc/fakewebrtccall.cc |
index 00f1864c18655434c8a45f94584b2301a5214c5a..e55466f65d32ed2325b20b91485dfe2479d2b682 100644 |
--- a/talk/media/webrtc/fakewebrtccall.cc |
+++ b/talk/media/webrtc/fakewebrtccall.cc |
@@ -244,6 +244,7 @@ void FakeCall::DestroyAudioSendStream(webrtc::AudioSendStream* send_stream) { |
webrtc::AudioReceiveStream* FakeCall::CreateAudioReceiveStream( |
const webrtc::AudioReceiveStream::Config& config) { |
+ DCHECK(config.channel_id != -1); |
audio_receive_streams_.push_back(new FakeAudioReceiveStream(config)); |
++num_created_receive_streams_; |
return audio_receive_streams_.back(); |