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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 363 // RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
364 return this; | 364 return this; |
365 } | 365 } |
366 | 366 |
367 webrtc::AudioSendStream* Call::CreateAudioSendStream( | 367 webrtc::AudioSendStream* Call::CreateAudioSendStream( |
368 const webrtc::AudioSendStream::Config& config) { | 368 const webrtc::AudioSendStream::Config& config) { |
369 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream"); | 369 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream"); |
370 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 370 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
371 AudioSendStream* send_stream = new AudioSendStream( | 371 AudioSendStream* send_stream = new AudioSendStream( |
372 config, config_.audio_state, congestion_controller_.get(), | 372 config, config_.audio_state, congestion_controller_.get(), |
373 bitrate_allocator_.get()); | 373 bitrate_allocator_.get(), event_log_.get()); |
374 { | 374 { |
375 WriteLockScoped write_lock(*send_crit_); | 375 WriteLockScoped write_lock(*send_crit_); |
376 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) == | 376 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) == |
377 audio_send_ssrcs_.end()); | 377 audio_send_ssrcs_.end()); |
378 audio_send_ssrcs_[config.rtp.ssrc] = send_stream; | 378 audio_send_ssrcs_[config.rtp.ssrc] = send_stream; |
379 } | 379 } |
380 send_stream->SignalNetworkState(audio_network_state_); | 380 send_stream->SignalNetworkState(audio_network_state_); |
381 UpdateAggregateNetworkState(); | 381 UpdateAggregateNetworkState(); |
382 return send_stream; | 382 return send_stream; |
383 } | 383 } |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 // thread. Then this check can be enabled. | 901 // thread. Then this check can be enabled. |
902 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 902 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
903 if (RtpHeaderParser::IsRtcp(packet, length)) | 903 if (RtpHeaderParser::IsRtcp(packet, length)) |
904 return DeliverRtcp(media_type, packet, length); | 904 return DeliverRtcp(media_type, packet, length); |
905 | 905 |
906 return DeliverRtp(media_type, packet, length, packet_time); | 906 return DeliverRtp(media_type, packet, length, packet_time); |
907 } | 907 } |
908 | 908 |
909 } // namespace internal | 909 } // namespace internal |
910 } // namespace webrtc | 910 } // namespace webrtc |
OLD | NEW |