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

Unified Diff: webrtc/modules/pacing/packet_router.cc

Issue 2491293002: Make FlexFEC packets paceable through RTPSender. (Closed)
Patch Set: Feedback response 1. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/pacing/packet_router.cc
diff --git a/webrtc/modules/pacing/packet_router.cc b/webrtc/modules/pacing/packet_router.cc
index de8c2cee5a13c106501ccc4f47e1656866c2c57f..7c8157124e3091b9edf603bdcfb6e4ab2abed7a4 100644
--- a/webrtc/modules/pacing/packet_router.cc
+++ b/webrtc/modules/pacing/packet_router.cc
@@ -48,7 +48,7 @@ bool PacketRouter::TimeToSendPacket(uint32_t ssrc,
RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread());
rtc::CritScope cs(&modules_crit_);
for (auto* rtp_module : rtp_modules_) {
- if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) {
+ if (ssrc == rtp_module->SSRC() || ssrc == rtp_module->FlexfecSsrc()) {
brandtr 2016/11/11 10:28:16 Moved this check to RTP module itself.
return rtp_module->TimeToSendPacket(ssrc, sequence_number,
capture_timestamp, retransmission,
probe_cluster_id);
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/include/flexfec_sender.h » ('j') | webrtc/modules/rtp_rtcp/include/flexfec_sender.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698