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

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

Issue 1419193002: Call OnSentPacket for all packets sent in the test framework. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addresded. Created 5 years, 1 month 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/call/bitrate_estimator_tests.cc ('k') | webrtc/call/call_perf_tests.cc » ('j') | 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 456 }
457 { 457 {
458 ReadLockScoped write_lock(*receive_crit_); 458 ReadLockScoped write_lock(*receive_crit_);
459 for (auto& kv : video_receive_ssrcs_) { 459 for (auto& kv : video_receive_ssrcs_) {
460 kv.second->SignalNetworkState(state); 460 kv.second->SignalNetworkState(state);
461 } 461 }
462 } 462 }
463 } 463 }
464 464
465 void Call::OnSentPacket(const rtc::SentPacket& sent_packet) { 465 void Call::OnSentPacket(const rtc::SentPacket& sent_packet) {
466 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
467 congestion_controller_->OnSentPacket(sent_packet); 466 congestion_controller_->OnSentPacket(sent_packet);
468 } 467 }
469 468
470 void Call::ConfigureSync(const std::string& sync_group) { 469 void Call::ConfigureSync(const std::string& sync_group) {
471 // Set sync only if there was no previous one. 470 // Set sync only if there was no previous one.
472 if (config_.voice_engine == nullptr || sync_group.empty()) 471 if (config_.voice_engine == nullptr || sync_group.empty())
473 return; 472 return;
474 473
475 AudioReceiveStream* sync_audio_stream = nullptr; 474 AudioReceiveStream* sync_audio_stream = nullptr;
476 // Find existing audio stream. 475 // Find existing audio stream.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // thread. Then this check can be enabled. 591 // thread. Then this check can be enabled.
593 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); 592 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread());
594 if (RtpHeaderParser::IsRtcp(packet, length)) 593 if (RtpHeaderParser::IsRtcp(packet, length))
595 return DeliverRtcp(media_type, packet, length); 594 return DeliverRtcp(media_type, packet, length);
596 595
597 return DeliverRtp(media_type, packet, length, packet_time); 596 return DeliverRtp(media_type, packet, length, packet_time);
598 } 597 }
599 598
600 } // namespace internal 599 } // namespace internal
601 } // namespace webrtc 600 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/bitrate_estimator_tests.cc ('k') | webrtc/call/call_perf_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698