| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 const VideoEncoderConfig& encoder_config) { | 406 const VideoEncoderConfig& encoder_config) { |
| 407 TRACE_EVENT0("webrtc", "Call::CreateVideoSendStream"); | 407 TRACE_EVENT0("webrtc", "Call::CreateVideoSendStream"); |
| 408 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 408 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
| 409 | 409 |
| 410 video_send_delay_stats_->AddSsrcs(config); | 410 video_send_delay_stats_->AddSsrcs(config); |
| 411 // TODO(mflodman): Base the start bitrate on a current bandwidth estimate, if | 411 // TODO(mflodman): Base the start bitrate on a current bandwidth estimate, if |
| 412 // the call has already started. | 412 // the call has already started. |
| 413 VideoSendStream* send_stream = new VideoSendStream( | 413 VideoSendStream* send_stream = new VideoSendStream( |
| 414 num_cpu_cores_, module_process_thread_.get(), call_stats_.get(), | 414 num_cpu_cores_, module_process_thread_.get(), call_stats_.get(), |
| 415 congestion_controller_.get(), bitrate_allocator_.get(), | 415 congestion_controller_.get(), bitrate_allocator_.get(), |
| 416 video_send_delay_stats_.get(), &remb_, config, encoder_config, | 416 video_send_delay_stats_.get(), &remb_, event_log_, config, encoder_config, |
| 417 suspended_video_send_ssrcs_); | 417 suspended_video_send_ssrcs_); |
| 418 { | 418 { |
| 419 WriteLockScoped write_lock(*send_crit_); | 419 WriteLockScoped write_lock(*send_crit_); |
| 420 for (uint32_t ssrc : config.rtp.ssrcs) { | 420 for (uint32_t ssrc : config.rtp.ssrcs) { |
| 421 RTC_DCHECK(video_send_ssrcs_.find(ssrc) == video_send_ssrcs_.end()); | 421 RTC_DCHECK(video_send_ssrcs_.find(ssrc) == video_send_ssrcs_.end()); |
| 422 video_send_ssrcs_[ssrc] = send_stream; | 422 video_send_ssrcs_[ssrc] = send_stream; |
| 423 } | 423 } |
| 424 video_send_streams_.insert(send_stream); | 424 video_send_streams_.insert(send_stream); |
| 425 } | 425 } |
| 426 send_stream->SignalNetworkState(video_network_state_); | 426 send_stream->SignalNetworkState(video_network_state_); |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 // thread. Then this check can be enabled. | 848 // thread. Then this check can be enabled. |
| 849 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 849 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
| 850 if (RtpHeaderParser::IsRtcp(packet, length)) | 850 if (RtpHeaderParser::IsRtcp(packet, length)) |
| 851 return DeliverRtcp(media_type, packet, length); | 851 return DeliverRtcp(media_type, packet, length); |
| 852 | 852 |
| 853 return DeliverRtp(media_type, packet, length, packet_time); | 853 return DeliverRtp(media_type, packet, length, packet_time); |
| 854 } | 854 } |
| 855 | 855 |
| 856 } // namespace internal | 856 } // namespace internal |
| 857 } // namespace webrtc | 857 } // namespace webrtc |
| OLD | NEW |