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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 Call* Call::Create(const Call::Config& config) { | 185 Call* Call::Create(const Call::Config& config) { |
186 return new internal::Call(config); | 186 return new internal::Call(config); |
187 } | 187 } |
188 | 188 |
189 namespace internal { | 189 namespace internal { |
190 | 190 |
191 Call::Call(const Call::Config& config) | 191 Call::Call(const Call::Config& config) |
192 : clock_(Clock::GetRealTimeClock()), | 192 : clock_(Clock::GetRealTimeClock()), |
193 num_cpu_cores_(CpuInfo::DetectNumberOfCores()), | 193 num_cpu_cores_(CpuInfo::DetectNumberOfCores()), |
194 module_process_thread_( | 194 module_process_thread_(ProcessThread::Create("ModuleProcessThread")), |
195 rtc::ScopedToUnique(ProcessThread::Create("ModuleProcessThread"))), | 195 pacer_thread_(ProcessThread::Create("PacerThread")), |
196 pacer_thread_(rtc::ScopedToUnique(ProcessThread::Create("PacerThread"))), | |
197 call_stats_(new CallStats(clock_)), | 196 call_stats_(new CallStats(clock_)), |
198 bitrate_allocator_(new BitrateAllocator()), | 197 bitrate_allocator_(new BitrateAllocator()), |
199 config_(config), | 198 config_(config), |
200 audio_network_state_(kNetworkUp), | 199 audio_network_state_(kNetworkUp), |
201 video_network_state_(kNetworkUp), | 200 video_network_state_(kNetworkUp), |
202 receive_crit_(RWLockWrapper::CreateRWLock()), | 201 receive_crit_(RWLockWrapper::CreateRWLock()), |
203 send_crit_(RWLockWrapper::CreateRWLock()), | 202 send_crit_(RWLockWrapper::CreateRWLock()), |
204 received_video_bytes_(0), | 203 received_video_bytes_(0), |
205 received_audio_bytes_(0), | 204 received_audio_bytes_(0), |
206 received_rtcp_bytes_(0), | 205 received_rtcp_bytes_(0), |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 // thread. Then this check can be enabled. | 833 // thread. Then this check can be enabled. |
835 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 834 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
836 if (RtpHeaderParser::IsRtcp(packet, length)) | 835 if (RtpHeaderParser::IsRtcp(packet, length)) |
837 return DeliverRtcp(media_type, packet, length); | 836 return DeliverRtcp(media_type, packet, length); |
838 | 837 |
839 return DeliverRtp(media_type, packet, length, packet_time); | 838 return DeliverRtp(media_type, packet, length, packet_time); |
840 } | 839 } |
841 | 840 |
842 } // namespace internal | 841 } // namespace internal |
843 } // namespace webrtc | 842 } // namespace webrtc |
OLD | NEW |