OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 void CallTest::DestroyStreams() { | 340 void CallTest::DestroyStreams() { |
341 if (audio_send_stream_) | 341 if (audio_send_stream_) |
342 sender_call_->DestroyAudioSendStream(audio_send_stream_); | 342 sender_call_->DestroyAudioSendStream(audio_send_stream_); |
343 audio_send_stream_ = nullptr; | 343 audio_send_stream_ = nullptr; |
344 for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_) | 344 for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_) |
345 receiver_call_->DestroyAudioReceiveStream(audio_recv_stream); | 345 receiver_call_->DestroyAudioReceiveStream(audio_recv_stream); |
346 | 346 |
347 if (video_send_stream_) | 347 if (video_send_stream_) |
348 sender_call_->DestroyVideoSendStream(video_send_stream_); | 348 sender_call_->DestroyVideoSendStream(video_send_stream_); |
349 video_send_stream_ = nullptr; | 349 video_send_stream_ = nullptr; |
| 350 |
350 for (VideoReceiveStream* video_recv_stream : video_receive_streams_) | 351 for (VideoReceiveStream* video_recv_stream : video_receive_streams_) |
351 receiver_call_->DestroyVideoReceiveStream(video_recv_stream); | 352 receiver_call_->DestroyVideoReceiveStream(video_recv_stream); |
352 | 353 |
353 for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_) | 354 for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_) |
354 receiver_call_->DestroyFlexfecReceiveStream(flexfec_recv_stream); | 355 receiver_call_->DestroyFlexfecReceiveStream(flexfec_recv_stream); |
355 | 356 |
356 video_receive_streams_.clear(); | 357 video_receive_streams_.clear(); |
357 allocated_decoders_.clear(); | 358 allocated_decoders_.clear(); |
358 } | 359 } |
359 | 360 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 | 496 |
496 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 497 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
497 } | 498 } |
498 | 499 |
499 bool EndToEndTest::ShouldCreateReceivers() const { | 500 bool EndToEndTest::ShouldCreateReceivers() const { |
500 return true; | 501 return true; |
501 } | 502 } |
502 | 503 |
503 } // namespace test | 504 } // namespace test |
504 } // namespace webrtc | 505 } // namespace webrtc |
OLD | NEW |