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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 std::string NACKStringBuilder::GetResult() { | 71 std::string NACKStringBuilder::GetResult() { |
72 if (consecutive_) { | 72 if (consecutive_) { |
73 stream_ << "-" << prevNack_; | 73 stream_ << "-" << prevNack_; |
74 consecutive_ = false; | 74 consecutive_ = false; |
75 } | 75 } |
76 return stream_.str(); | 76 return stream_.str(); |
77 } | 77 } |
78 | 78 |
79 RTCPSender::FeedbackState::FeedbackState() | 79 RTCPSender::FeedbackState::FeedbackState() |
80 : send_payload_type(0), | 80 : packets_sent(0), |
81 packets_sent(0), | |
82 media_bytes_sent(0), | 81 media_bytes_sent(0), |
83 send_bitrate(0), | 82 send_bitrate(0), |
84 last_rr_ntp_secs(0), | 83 last_rr_ntp_secs(0), |
85 last_rr_ntp_frac(0), | 84 last_rr_ntp_frac(0), |
86 remote_sr(0), | 85 remote_sr(0), |
87 has_last_xr_rr(false), | 86 has_last_xr_rr(false), |
88 module(nullptr) {} | 87 module(nullptr) {} |
89 | 88 |
90 class PacketContainer : public rtcp::CompoundPacket, | 89 class PacketContainer : public rtcp::CompoundPacket, |
91 public rtcp::RtcpPacket::PacketReadyCallback { | 90 public rtcp::RtcpPacket::PacketReadyCallback { |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 max_packet_size = max_packet_size_; | 1002 max_packet_size = max_packet_size_; |
1004 } | 1003 } |
1005 | 1004 |
1006 RTC_DCHECK_LE(max_packet_size, IP_PACKET_SIZE); | 1005 RTC_DCHECK_LE(max_packet_size, IP_PACKET_SIZE); |
1007 uint8_t buffer[IP_PACKET_SIZE]; | 1006 uint8_t buffer[IP_PACKET_SIZE]; |
1008 return packet.BuildExternalBuffer(buffer, max_packet_size, &sender) && | 1007 return packet.BuildExternalBuffer(buffer, max_packet_size, &sender) && |
1009 !sender.send_failure_; | 1008 !sender.send_failure_; |
1010 } | 1009 } |
1011 | 1010 |
1012 } // namespace webrtc | 1011 } // namespace webrtc |
OLD | NEW |