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); |
the sun
2015/06/11 11:52:04
Validate config in object ctor instead.
pbos-webrtc
2015/06/11 14:48:53
Done.
|
audio_receive_streams_.push_back(new FakeAudioReceiveStream(config)); |
++num_created_receive_streams_; |
return audio_receive_streams_.back(); |