| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |