Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include "webrtc/video/video_quality_test.h" | 10 #include "webrtc/video/video_quality_test.h" |
| (...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1976 sender_call_->DestroyAudioSendStream(audio_send_stream_); | 1976 sender_call_->DestroyAudioSendStream(audio_send_stream_); |
| 1977 receiver_call_->DestroyAudioReceiveStream(audio_receive_stream); | 1977 receiver_call_->DestroyAudioReceiveStream(audio_receive_stream); |
| 1978 } | 1978 } |
| 1979 | 1979 |
| 1980 // Stop receiving and sending video. | 1980 // Stop receiving and sending video. |
| 1981 if (params_.video.enabled) { | 1981 if (params_.video.enabled) { |
| 1982 video_capturer_->Stop(); | 1982 video_capturer_->Stop(); |
| 1983 video_send_stream_->Stop(); | 1983 video_send_stream_->Stop(); |
| 1984 for (FlexfecReceiveStream* flexfec_receive_stream : | 1984 for (FlexfecReceiveStream* flexfec_receive_stream : |
| 1985 flexfec_receive_streams_) { | 1985 flexfec_receive_streams_) { |
| 1986 for (VideoReceiveStream* video_receive_stream : video_receive_streams_) { | |
| 1987 // TODO(eladalon): !!! Discuss with reviewers - do we perhaps want | |
| 1988 // something else to be in charge of removing the secondary sinks? | |
| 1989 video_receive_stream->RemoveSecondarySink(flexfec_receive_stream); | |
| 1990 } | |
|
stefan-webrtc
2017/07/07 09:36:24
I think it should be done the same way it would've
eladalon
2017/07/07 14:16:24
Sorry, I was unclear - this discussion is not real
| |
| 1986 flexfec_receive_stream->Stop(); | 1991 flexfec_receive_stream->Stop(); |
| 1987 receiver_call_->DestroyFlexfecReceiveStream(flexfec_receive_stream); | 1992 receiver_call_->DestroyFlexfecReceiveStream(flexfec_receive_stream); |
| 1988 } | 1993 } |
| 1989 for (VideoReceiveStream* receive_stream : video_receive_streams_) { | 1994 for (VideoReceiveStream* receive_stream : video_receive_streams_) { |
| 1990 receive_stream->Stop(); | 1995 receive_stream->Stop(); |
| 1991 receiver_call_->DestroyVideoReceiveStream(receive_stream); | 1996 receiver_call_->DestroyVideoReceiveStream(receive_stream); |
| 1992 } | 1997 } |
| 1993 sender_call_->DestroyVideoSendStream(video_send_stream_); | 1998 sender_call_->DestroyVideoSendStream(video_send_stream_); |
| 1994 } | 1999 } |
| 1995 | 2000 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 2019 if (!params_.video.encoded_frame_base_path.empty()) { | 2024 if (!params_.video.encoded_frame_base_path.empty()) { |
| 2020 std::ostringstream str; | 2025 std::ostringstream str; |
| 2021 str << receive_logs_++; | 2026 str << receive_logs_++; |
| 2022 std::string path = | 2027 std::string path = |
| 2023 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 2028 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
| 2024 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 2029 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
| 2025 10000000); | 2030 10000000); |
| 2026 } | 2031 } |
| 2027 } | 2032 } |
| 2028 } // namespace webrtc | 2033 } // namespace webrtc |
| OLD | NEW |