Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: webrtc/call/call.cc

Issue 2402333002: Add RtcpRttStats to AudioStream (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 return this; 366 return this;
367 } 367 }
368 368
369 webrtc::AudioSendStream* Call::CreateAudioSendStream( 369 webrtc::AudioSendStream* Call::CreateAudioSendStream(
370 const webrtc::AudioSendStream::Config& config) { 370 const webrtc::AudioSendStream::Config& config) {
371 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream"); 371 TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream");
372 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); 372 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
373 event_log_->LogAudioSendStreamConfig(config); 373 event_log_->LogAudioSendStreamConfig(config);
374 AudioSendStream* send_stream = new AudioSendStream( 374 AudioSendStream* send_stream = new AudioSendStream(
375 config, config_.audio_state, &worker_queue_, congestion_controller_.get(), 375 config, config_.audio_state, &worker_queue_, congestion_controller_.get(),
376 bitrate_allocator_.get(), event_log_); 376 bitrate_allocator_.get(), event_log_, call_stats_->rtcp_rtt_stats());
377 { 377 {
378 WriteLockScoped write_lock(*send_crit_); 378 WriteLockScoped write_lock(*send_crit_);
379 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) == 379 RTC_DCHECK(audio_send_ssrcs_.find(config.rtp.ssrc) ==
380 audio_send_ssrcs_.end()); 380 audio_send_ssrcs_.end());
381 audio_send_ssrcs_[config.rtp.ssrc] = send_stream; 381 audio_send_ssrcs_[config.rtp.ssrc] = send_stream;
382 } 382 }
383 send_stream->SignalNetworkState(audio_network_state_); 383 send_stream->SignalNetworkState(audio_network_state_);
384 UpdateAggregateNetworkState(); 384 UpdateAggregateNetworkState();
385 return send_stream; 385 return send_stream;
386 } 386 }
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 // thread. Then this check can be enabled. 935 // thread. Then this check can be enabled.
936 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); 936 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread());
937 if (RtpHeaderParser::IsRtcp(packet, length)) 937 if (RtpHeaderParser::IsRtcp(packet, length))
938 return DeliverRtcp(media_type, packet, length); 938 return DeliverRtcp(media_type, packet, length);
939 939
940 return DeliverRtp(media_type, packet, length, packet_time); 940 return DeliverRtp(media_type, packet, length, packet_time);
941 } 941 }
942 942
943 } // namespace internal 943 } // namespace internal
944 } // namespace webrtc 944 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | webrtc/modules/rtp_rtcp/mocks/mock_rtcp_rtt_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698