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

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

Issue 2007743003: Add sender controlled playout delay limits (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@cleanup_rtp_hdr_extensions
Patch Set: Created 4 years, 7 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) 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 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 _cbRtcpBandwidthObserver->OnReceivedEstimatedBitrate( 1349 _cbRtcpBandwidthObserver->OnReceivedEstimatedBitrate(
1350 rtcpPacketInformation.receiverEstimatedMaxBitrate); 1350 rtcpPacketInformation.receiverEstimatedMaxBitrate);
1351 } 1351 }
1352 if ((rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpSr) || 1352 if ((rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpSr) ||
1353 (rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpRr)) { 1353 (rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpRr)) {
1354 int64_t now = _clock->TimeInMilliseconds(); 1354 int64_t now = _clock->TimeInMilliseconds();
1355 _cbRtcpBandwidthObserver->OnReceivedRtcpReceiverReport( 1355 _cbRtcpBandwidthObserver->OnReceivedRtcpReceiverReport(
1356 rtcpPacketInformation.report_blocks, 1356 rtcpPacketInformation.report_blocks,
1357 rtcpPacketInformation.rtt, 1357 rtcpPacketInformation.rtt,
1358 now); 1358 now);
1359 _rtpRtcp.OnReceivedRtcpReceiverReport(
1360 rtcpPacketInformation.report_blocks);
1359 } 1361 }
1360 } 1362 }
1361 if (_cbTransportFeedbackObserver && 1363 if (_cbTransportFeedbackObserver &&
1362 (rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpTransportFeedback)) { 1364 (rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpTransportFeedback)) {
1363 uint32_t media_source_ssrc = 1365 uint32_t media_source_ssrc =
1364 rtcpPacketInformation.transport_feedback_->GetMediaSourceSsrc(); 1366 rtcpPacketInformation.transport_feedback_->GetMediaSourceSsrc();
1365 if (media_source_ssrc == local_ssrc || 1367 if (media_source_ssrc == local_ssrc ||
1366 registered_ssrcs.find(media_source_ssrc) != registered_ssrcs.end()) { 1368 registered_ssrcs.find(media_source_ssrc) != registered_ssrcs.end()) {
1367 _cbTransportFeedbackObserver->OnTransportFeedback( 1369 _cbTransportFeedbackObserver->OnTransportFeedback(
1368 *rtcpPacketInformation.transport_feedback_.get()); 1370 *rtcpPacketInformation.transport_feedback_.get());
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 return -1; 1439 return -1;
1438 } 1440 }
1439 num += receiveInfo->TmmbrSet.lengthOfSet(); 1441 num += receiveInfo->TmmbrSet.lengthOfSet();
1440 receiveInfoIt++; 1442 receiveInfoIt++;
1441 } 1443 }
1442 } 1444 }
1443 return num; 1445 return num;
1444 } 1446 }
1445 1447
1446 } // namespace webrtc 1448 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698