| 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 |
| 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
| 12 | 12 |
| 13 #include <string.h> // memcpy | 13 #include <string.h> // memcpy |
| 14 | 14 |
| 15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 16 #include "webrtc/base/constructormagic.h" |
| 16 #include "webrtc/base/logging.h" | 17 #include "webrtc/base/logging.h" |
| 17 #include "webrtc/base/trace_event.h" | 18 #include "webrtc/base/trace_event.h" |
| 18 #include "webrtc/call.h" | 19 #include "webrtc/call.h" |
| 19 #include "webrtc/call/rtc_event_log.h" | 20 #include "webrtc/call/rtc_event_log.h" |
| 20 #include "webrtc/common_types.h" | 21 #include "webrtc/common_types.h" |
| 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h" | 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h" |
| 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" |
| 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h" |
| 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/fir.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/fir.h" |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 // but we can't because of an incorrect warning (C4822) in MVS 2013. | 1041 // but we can't because of an incorrect warning (C4822) in MVS 2013. |
| 1041 } sender(transport_, event_log_); | 1042 } sender(transport_, event_log_); |
| 1042 | 1043 |
| 1043 RTC_DCHECK_LE(max_payload_length_, static_cast<size_t>(IP_PACKET_SIZE)); | 1044 RTC_DCHECK_LE(max_payload_length_, static_cast<size_t>(IP_PACKET_SIZE)); |
| 1044 uint8_t buffer[IP_PACKET_SIZE]; | 1045 uint8_t buffer[IP_PACKET_SIZE]; |
| 1045 return packet.BuildExternalBuffer(buffer, max_payload_length_, &sender) && | 1046 return packet.BuildExternalBuffer(buffer, max_payload_length_, &sender) && |
| 1046 !sender.send_failure_; | 1047 !sender.send_failure_; |
| 1047 } | 1048 } |
| 1048 | 1049 |
| 1049 } // namespace webrtc | 1050 } // namespace webrtc |
| OLD | NEW |