| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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_send_stream.h" | 10 #include "webrtc/video/video_send_stream.h" |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 RTC_DCHECK_RUN_ON(worker_queue_); | 741 RTC_DCHECK_RUN_ON(worker_queue_); |
| 742 LOG(LS_INFO) << "VideoSendStreamInternal: " << config_->ToString(); | 742 LOG(LS_INFO) << "VideoSendStreamInternal: " << config_->ToString(); |
| 743 weak_ptr_ = weak_ptr_factory_.GetWeakPtr(); | 743 weak_ptr_ = weak_ptr_factory_.GetWeakPtr(); |
| 744 module_process_thread_checker_.DetachFromThread(); | 744 module_process_thread_checker_.DetachFromThread(); |
| 745 | 745 |
| 746 RTC_DCHECK(!config_->rtp.ssrcs.empty()); | 746 RTC_DCHECK(!config_->rtp.ssrcs.empty()); |
| 747 RTC_DCHECK(call_stats_); | 747 RTC_DCHECK(call_stats_); |
| 748 RTC_DCHECK(congestion_controller_); | 748 RTC_DCHECK(congestion_controller_); |
| 749 RTC_DCHECK(remb_); | 749 RTC_DCHECK(remb_); |
| 750 | 750 |
| 751 congestion_controller_->EnablePeriodicAlrProbing( |
| 752 config_->periodic_alr_bandwidth_probing); |
| 753 |
| 751 // RTP/RTCP initialization. | 754 // RTP/RTCP initialization. |
| 752 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 755 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
| 753 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); | 756 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); |
| 754 } | 757 } |
| 755 | 758 |
| 756 for (size_t i = 0; i < config_->rtp.extensions.size(); ++i) { | 759 for (size_t i = 0; i < config_->rtp.extensions.size(); ++i) { |
| 757 const std::string& extension = config_->rtp.extensions[i].uri; | 760 const std::string& extension = config_->rtp.extensions[i].uri; |
| 758 int id = config_->rtp.extensions[i].id; | 761 int id = config_->rtp.extensions[i].id; |
| 759 // One-byte-extension local identifiers are in the range 1-14 inclusive. | 762 // One-byte-extension local identifiers are in the range 1-14 inclusive. |
| 760 RTC_DCHECK_GE(id, 1); | 763 RTC_DCHECK_GE(id, 1); |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 } | 1215 } |
| 1213 | 1216 |
| 1214 void VideoSendStreamImpl::SetTransportOverhead( | 1217 void VideoSendStreamImpl::SetTransportOverhead( |
| 1215 int transport_overhead_per_packet) { | 1218 int transport_overhead_per_packet) { |
| 1216 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) | 1219 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) |
| 1217 rtp_rtcp->SetTransportOverhead(transport_overhead_per_packet); | 1220 rtp_rtcp->SetTransportOverhead(transport_overhead_per_packet); |
| 1218 } | 1221 } |
| 1219 | 1222 |
| 1220 } // namespace internal | 1223 } // namespace internal |
| 1221 } // namespace webrtc | 1224 } // namespace webrtc |
| OLD | NEW |