| 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 <stdio.h> | 10 #include <stdio.h> |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at | 1118 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at |
| 1119 // least share as much code as possible. That way this test would also match | 1119 // least share as much code as possible. That way this test would also match |
| 1120 // the full stack tests better. | 1120 // the full stack tests better. |
| 1121 transport.SetReceiver(call->Receiver()); | 1121 transport.SetReceiver(call->Receiver()); |
| 1122 | 1122 |
| 1123 SetupCommon(&transport, &transport); | 1123 SetupCommon(&transport, &transport); |
| 1124 | 1124 |
| 1125 video_send_config_.local_renderer = local_preview.get(); | 1125 video_send_config_.local_renderer = local_preview.get(); |
| 1126 video_receive_configs_[stream_id].renderer = loopback_video.get(); | 1126 video_receive_configs_[stream_id].renderer = loopback_video.get(); |
| 1127 | 1127 |
| 1128 video_send_config_.suspend_below_min_bitrate = |
| 1129 params_.common.suspend_below_min_bitrate; |
| 1130 |
| 1128 if (params.common.fec) { | 1131 if (params.common.fec) { |
| 1129 video_send_config_.rtp.fec.red_payload_type = kRedPayloadType; | 1132 video_send_config_.rtp.fec.red_payload_type = kRedPayloadType; |
| 1130 video_send_config_.rtp.fec.ulpfec_payload_type = kUlpfecPayloadType; | 1133 video_send_config_.rtp.fec.ulpfec_payload_type = kUlpfecPayloadType; |
| 1131 video_receive_configs_[stream_id].rtp.fec.red_payload_type = | 1134 video_receive_configs_[stream_id].rtp.fec.red_payload_type = |
| 1132 kRedPayloadType; | 1135 kRedPayloadType; |
| 1133 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = | 1136 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = |
| 1134 kUlpfecPayloadType; | 1137 kUlpfecPayloadType; |
| 1135 } | 1138 } |
| 1136 | 1139 |
| 1137 if (params_.screenshare.enabled) | 1140 if (params_.screenshare.enabled) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1153 video_send_stream_->Stop(); | 1156 video_send_stream_->Stop(); |
| 1154 receive_stream->Stop(); | 1157 receive_stream->Stop(); |
| 1155 | 1158 |
| 1156 call->DestroyVideoReceiveStream(receive_stream); | 1159 call->DestroyVideoReceiveStream(receive_stream); |
| 1157 call->DestroyVideoSendStream(video_send_stream_); | 1160 call->DestroyVideoSendStream(video_send_stream_); |
| 1158 | 1161 |
| 1159 transport.StopSending(); | 1162 transport.StopSending(); |
| 1160 } | 1163 } |
| 1161 | 1164 |
| 1162 } // namespace webrtc | 1165 } // namespace webrtc |
| OLD | NEW |