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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc

Issue 1628323003: [rtp_rtcp] Fix potentional time difference between rtp and rtcp packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_sender.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 // Set SequenceNumber, default is a random number. 286 // Set SequenceNumber, default is a random number.
287 void ModuleRtpRtcpImpl::SetSequenceNumber(const uint16_t seq_num) { 287 void ModuleRtpRtcpImpl::SetSequenceNumber(const uint16_t seq_num) {
288 rtp_sender_.SetSequenceNumber(seq_num); 288 rtp_sender_.SetSequenceNumber(seq_num);
289 } 289 }
290 290
291 bool ModuleRtpRtcpImpl::SetRtpStateForSsrc(uint32_t ssrc, 291 bool ModuleRtpRtcpImpl::SetRtpStateForSsrc(uint32_t ssrc,
292 const RtpState& rtp_state) { 292 const RtpState& rtp_state) {
293 if (rtp_sender_.SSRC() == ssrc) { 293 if (rtp_sender_.SSRC() == ssrc) {
294 SetStartTimestamp(rtp_state.start_timestamp);
294 rtp_sender_.SetRtpState(rtp_state); 295 rtp_sender_.SetRtpState(rtp_state);
295 return true; 296 return true;
296 } 297 }
297 if (rtp_sender_.RtxSsrc() == ssrc) { 298 if (rtp_sender_.RtxSsrc() == ssrc) {
298 rtp_sender_.SetRtxRtpState(rtp_state); 299 rtp_sender_.SetRtxRtpState(rtp_state);
299 return true; 300 return true;
300 } 301 }
301 return false; 302 return false;
302 } 303 }
303 304
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( 993 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback(
993 StreamDataCountersCallback* callback) { 994 StreamDataCountersCallback* callback) {
994 rtp_sender_.RegisterRtpStatisticsCallback(callback); 995 rtp_sender_.RegisterRtpStatisticsCallback(callback);
995 } 996 }
996 997
997 StreamDataCountersCallback* 998 StreamDataCountersCallback*
998 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { 999 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const {
999 return rtp_sender_.GetRtpStatisticsCallback(); 1000 return rtp_sender_.GetRtpStatisticsCallback();
1000 } 1001 }
1001 } // namespace webrtc 1002 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698