| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 int32_t RTPSender::RegisterRtpHeaderExtension(RTPExtensionType type, | 186 int32_t RTPSender::RegisterRtpHeaderExtension(RTPExtensionType type, |
| 187 uint8_t id) { | 187 uint8_t id) { |
| 188 rtc::CritScope lock(&send_critsect_); | 188 rtc::CritScope lock(&send_critsect_); |
| 189 switch (type) { | 189 switch (type) { |
| 190 case kRtpExtensionVideoRotation: | 190 case kRtpExtensionVideoRotation: |
| 191 case kRtpExtensionPlayoutDelay: | 191 case kRtpExtensionPlayoutDelay: |
| 192 case kRtpExtensionTransmissionTimeOffset: | 192 case kRtpExtensionTransmissionTimeOffset: |
| 193 case kRtpExtensionAbsoluteSendTime: | 193 case kRtpExtensionAbsoluteSendTime: |
| 194 case kRtpExtensionAudioLevel: | 194 case kRtpExtensionAudioLevel: |
| 195 case kRtpExtensionTransportSequenceNumber: | 195 case kRtpExtensionTransportSequenceNumber: |
| 196 case kRtpExtensionVideoContentType: |
| 196 return rtp_header_extension_map_.Register(type, id); | 197 return rtp_header_extension_map_.Register(type, id); |
| 197 case kRtpExtensionNone: | 198 case kRtpExtensionNone: |
| 198 case kRtpExtensionNumberOfExtensions: | 199 case kRtpExtensionNumberOfExtensions: |
| 199 LOG(LS_ERROR) << "Invalid RTP extension type for registration."; | 200 LOG(LS_ERROR) << "Invalid RTP extension type for registration."; |
| 200 return -1; | 201 return -1; |
| 201 } | 202 } |
| 202 return -1; | 203 return -1; |
| 203 } | 204 } |
| 204 | 205 |
| 205 bool RTPSender::IsRtpHeaderExtensionRegistered(RTPExtensionType type) const { | 206 bool RTPSender::IsRtpHeaderExtensionRegistered(RTPExtensionType type) const { |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { | 1275 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { |
| 1275 return; | 1276 return; |
| 1276 } | 1277 } |
| 1277 rtp_overhead_bytes_per_packet_ = packet.headers_size(); | 1278 rtp_overhead_bytes_per_packet_ = packet.headers_size(); |
| 1278 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; | 1279 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; |
| 1279 } | 1280 } |
| 1280 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); | 1281 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); |
| 1281 } | 1282 } |
| 1282 | 1283 |
| 1283 } // namespace webrtc | 1284 } // namespace webrtc |
| OLD | NEW |