| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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/pc/rtptransport.h" | 11 #include "webrtc/pc/rtptransport.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | |
| 14 #include "webrtc/base/copyonwritebuffer.h" | |
| 15 #include "webrtc/base/trace_event.h" | |
| 16 #include "webrtc/media/base/rtputils.h" | 13 #include "webrtc/media/base/rtputils.h" |
| 17 #include "webrtc/p2p/base/packettransportinterface.h" | 14 #include "webrtc/p2p/base/packettransportinterface.h" |
| 15 #include "webrtc/rtc_base/checks.h" |
| 16 #include "webrtc/rtc_base/copyonwritebuffer.h" |
| 17 #include "webrtc/rtc_base/trace_event.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 | 20 |
| 21 void RtpTransport::SetRtcpMuxEnabled(bool enable) { | 21 void RtpTransport::SetRtcpMuxEnabled(bool enable) { |
| 22 rtcp_mux_enabled_ = enable; | 22 rtcp_mux_enabled_ = enable; |
| 23 MaybeSignalReadyToSend(); | 23 MaybeSignalReadyToSend(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void RtpTransport::SetRtpPacketTransport( | 26 void RtpTransport::SetRtpPacketTransport( |
| 27 rtc::PacketTransportInternal* new_packet_transport) { | 27 rtc::PacketTransportInternal* new_packet_transport) { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 } | 203 } |
| 204 if (rtcp) { | 204 if (rtcp) { |
| 205 // Permit all (seemingly valid) RTCP packets. | 205 // Permit all (seemingly valid) RTCP packets. |
| 206 return true; | 206 return true; |
| 207 } | 207 } |
| 208 // Check whether we handle this payload. | 208 // Check whether we handle this payload. |
| 209 return HandlesPacket(packet->data(), packet->size()); | 209 return HandlesPacket(packet->data(), packet->size()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace webrtc | 212 } // namespace webrtc |
| OLD | NEW |