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

Side by Side Diff: webrtc/modules/pacing/packet_router.cc

Issue 2348623003: Unify rtcp packet setters (Closed)
Patch Set: +call/rtc_event_log_unittest 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 prev_seq = rtc::AtomicOps::CompareAndSwap(&transport_seq_, desired_prev_seq, 92 prev_seq = rtc::AtomicOps::CompareAndSwap(&transport_seq_, desired_prev_seq,
93 new_seq); 93 new_seq);
94 } while (prev_seq != desired_prev_seq); 94 } while (prev_seq != desired_prev_seq);
95 95
96 return new_seq; 96 return new_seq;
97 } 97 }
98 98
99 bool PacketRouter::SendFeedback(rtcp::TransportFeedback* packet) { 99 bool PacketRouter::SendFeedback(rtcp::TransportFeedback* packet) {
100 rtc::CritScope cs(&modules_crit_); 100 rtc::CritScope cs(&modules_crit_);
101 for (auto* rtp_module : rtp_modules_) { 101 for (auto* rtp_module : rtp_modules_) {
102 packet->WithPacketSenderSsrc(rtp_module->SSRC()); 102 packet->SetSenderSsrc(rtp_module->SSRC());
103 if (rtp_module->SendFeedbackPacket(*packet)) 103 if (rtp_module->SendFeedbackPacket(*packet))
104 return true; 104 return true;
105 } 105 }
106 return false; 106 return false;
107 } 107 }
108 108
109 } // namespace webrtc 109 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/rtc_event_log_unittest.cc ('k') | webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698