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

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

Issue 2226823003: Set the event log in Channel from AudioSendStream (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Registration order and rebase Created 4 years, 3 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
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698