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 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 } // namespace internal | 129 } // namespace internal |
130 | 130 |
131 Call* Call::Create(const Call::Config& config) { | 131 Call* Call::Create(const Call::Config& config) { |
132 return new internal::Call(config); | 132 return new internal::Call(config); |
133 } | 133 } |
134 | 134 |
135 namespace internal { | 135 namespace internal { |
136 | 136 |
137 Call::Call(const Call::Config& config) | 137 Call::Call(const Call::Config& config) |
138 : num_cpu_cores_(CpuInfo::DetectNumberOfCores()), | 138 : num_cpu_cores_(CpuInfo::DetectNumberOfCores()), |
139 module_process_thread_(ProcessThread::Create()), | 139 module_process_thread_(ProcessThread::Create("ProcessThread")), |
pbos-webrtc
2015/09/11 13:37:22
ModuleProcessThread or ModuleThread
stefan-webrtc
2015/09/11 13:43:54
Done.
| |
140 channel_group_(new ChannelGroup(module_process_thread_.get())), | 140 channel_group_(new ChannelGroup(module_process_thread_.get())), |
141 next_channel_id_(0), | 141 next_channel_id_(0), |
142 config_(config), | 142 config_(config), |
143 network_enabled_(true), | 143 network_enabled_(true), |
144 receive_crit_(RWLockWrapper::CreateRWLock()), | 144 receive_crit_(RWLockWrapper::CreateRWLock()), |
145 send_crit_(RWLockWrapper::CreateRWLock()), | 145 send_crit_(RWLockWrapper::CreateRWLock()), |
146 event_log_(nullptr) { | 146 event_log_(nullptr) { |
147 DCHECK_GE(config.bitrate_config.min_bitrate_bps, 0); | 147 DCHECK_GE(config.bitrate_config.min_bitrate_bps, 0); |
148 DCHECK_GE(config.bitrate_config.start_bitrate_bps, | 148 DCHECK_GE(config.bitrate_config.start_bitrate_bps, |
149 config.bitrate_config.min_bitrate_bps); | 149 config.bitrate_config.min_bitrate_bps); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
543 size_t length, | 543 size_t length, |
544 const PacketTime& packet_time) { | 544 const PacketTime& packet_time) { |
545 if (RtpHeaderParser::IsRtcp(packet, length)) | 545 if (RtpHeaderParser::IsRtcp(packet, length)) |
546 return DeliverRtcp(media_type, packet, length); | 546 return DeliverRtcp(media_type, packet, length); |
547 | 547 |
548 return DeliverRtp(media_type, packet, length, packet_time); | 548 return DeliverRtp(media_type, packet, length, packet_time); |
549 } | 549 } |
550 | 550 |
551 } // namespace internal | 551 } // namespace internal |
552 } // namespace webrtc | 552 } // namespace webrtc |
OLD | NEW |