OLD | NEW |
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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 packet_information.target_bitrate_allocation) { | 985 packet_information.target_bitrate_allocation) { |
986 bitrate_allocation_observer_->OnBitrateAllocationUpdated( | 986 bitrate_allocation_observer_->OnBitrateAllocationUpdated( |
987 *packet_information.target_bitrate_allocation); | 987 *packet_information.target_bitrate_allocation); |
988 } | 988 } |
989 | 989 |
990 if (!receiver_only_) { | 990 if (!receiver_only_) { |
991 rtc::CritScope cs(&feedbacks_lock_); | 991 rtc::CritScope cs(&feedbacks_lock_); |
992 if (stats_callback_) { | 992 if (stats_callback_) { |
993 for (const auto& report_block : packet_information.report_blocks) { | 993 for (const auto& report_block : packet_information.report_blocks) { |
994 RtcpStatistics stats; | 994 RtcpStatistics stats; |
995 stats.cumulative_lost = report_block.cumulativeLost; | 995 stats.packets_lost = report_block.cumulativeLost; |
996 stats.extended_max_sequence_number = report_block.extendedHighSeqNum; | 996 stats.extended_highest_sequence_number = |
| 997 report_block.extendedHighSeqNum; |
997 stats.fraction_lost = report_block.fractionLost; | 998 stats.fraction_lost = report_block.fractionLost; |
998 stats.jitter = report_block.jitter; | 999 stats.jitter = report_block.jitter; |
999 | 1000 |
1000 stats_callback_->StatisticsUpdated(stats, report_block.sourceSSRC); | 1001 stats_callback_->StatisticsUpdated(stats, report_block.sourceSSRC); |
1001 } | 1002 } |
1002 } | 1003 } |
1003 } | 1004 } |
1004 } | 1005 } |
1005 | 1006 |
1006 int32_t RTCPReceiver::CNAME(uint32_t remoteSSRC, | 1007 int32_t RTCPReceiver::CNAME(uint32_t remoteSSRC, |
(...skipping 26 matching lines...) Expand all Loading... |
1033 } else { | 1034 } else { |
1034 candidates.push_back(it->second.tmmbr_item); | 1035 candidates.push_back(it->second.tmmbr_item); |
1035 ++it; | 1036 ++it; |
1036 } | 1037 } |
1037 } | 1038 } |
1038 } | 1039 } |
1039 return candidates; | 1040 return candidates; |
1040 } | 1041 } |
1041 | 1042 |
1042 } // namespace webrtc | 1043 } // namespace webrtc |
OLD | NEW |