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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 373 // RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
374 return this; | 374 return this; |
375 } | 375 } |
376 | 376 |
377 webrtc::AudioSendStream* Call::CreateAudioSendStream( | 377 webrtc::AudioSendStream* Call::CreateAudioSendStream( |
378 const webrtc::AudioSendStream::Config& config) { | 378 const webrtc::AudioSendStream::Config& config) { |
379 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream"); | 379 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream"); |
380 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 380 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
381 AudioSendStream* send_stream = new AudioSendStream( | 381 AudioSendStream* send_stream = new AudioSendStream( |
382 config, config_.audio_state, &worker_queue_, congestion_controller_.get(), | 382 config, config_.audio_state, &worker_queue_, congestion_controller_.get(), |
383 bitrate_allocator_.get()); | 383 bitrate_allocator_.get(), event_log_.get()); |
384 { | 384 { |
385 WriteLockScoped write_lock(*send_crit_); | 385 WriteLockScoped write_lock(*send_crit_); |
386 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) == | 386 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) == |
387 audio_send_ssrcs_.end()); | 387 audio_send_ssrcs_.end()); |
388 audio_send_ssrcs_[config.rtp.ssrc] = send_stream; | 388 audio_send_ssrcs_[config.rtp.ssrc] = send_stream; |
389 } | 389 } |
390 send_stream->SignalNetworkState(audio_network_state_); | 390 send_stream->SignalNetworkState(audio_network_state_); |
391 UpdateAggregateNetworkState(); | 391 UpdateAggregateNetworkState(); |
392 return send_stream; | 392 return send_stream; |
393 } | 393 } |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // thread. Then this check can be enabled. | 940 // thread. Then this check can be enabled. |
941 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 941 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
942 if (RtpHeaderParser::IsRtcp(packet, length)) | 942 if (RtpHeaderParser::IsRtcp(packet, length)) |
943 return DeliverRtcp(media_type, packet, length); | 943 return DeliverRtcp(media_type, packet, length); |
944 | 944 |
945 return DeliverRtp(media_type, packet, length, packet_time); | 945 return DeliverRtp(media_type, packet, length, packet_time); |
946 } | 946 } |
947 | 947 |
948 } // namespace internal | 948 } // namespace internal |
949 } // namespace webrtc | 949 } // namespace webrtc |
OLD | NEW |