Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.cc

Issue 2759433005: Delete unused member RTCPSender::FeedbackState::send_payload_type. (Closed)
Patch Set: Delete getter method RTPSender::SendPayloadType. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 if (payload_type_map_.end() == it) { 270 if (payload_type_map_.end() == it) {
271 return -1; 271 return -1;
272 } 272 }
273 RtpUtility::Payload* payload = it->second; 273 RtpUtility::Payload* payload = it->second;
274 delete payload; 274 delete payload;
275 payload_type_map_.erase(it); 275 payload_type_map_.erase(it);
276 return 0; 276 return 0;
277 } 277 }
278 278
279 // TODO(nisse): Delete this method, only used internally and by test code.
279 void RTPSender::SetSendPayloadType(int8_t payload_type) { 280 void RTPSender::SetSendPayloadType(int8_t payload_type) {
280 rtc::CritScope lock(&send_critsect_); 281 rtc::CritScope lock(&send_critsect_);
281 payload_type_ = payload_type; 282 payload_type_ = payload_type;
282 } 283 }
283 284
284 int8_t RTPSender::SendPayloadType() const {
285 rtc::CritScope lock(&send_critsect_);
286 return payload_type_;
287 }
288
289 void RTPSender::SetMaxRtpPacketSize(size_t max_packet_size) { 285 void RTPSender::SetMaxRtpPacketSize(size_t max_packet_size) {
290 // Sanity check. 286 // Sanity check.
291 RTC_DCHECK(max_packet_size >= 100 && max_packet_size <= IP_PACKET_SIZE) 287 RTC_DCHECK(max_packet_size >= 100 && max_packet_size <= IP_PACKET_SIZE)
292 << "Invalid max payload length: " << max_packet_size; 288 << "Invalid max payload length: " << max_packet_size;
293 rtc::CritScope lock(&send_critsect_); 289 rtc::CritScope lock(&send_critsect_);
294 max_packet_size_ = max_packet_size; 290 max_packet_size_ = max_packet_size;
295 } 291 }
296 292
297 size_t RTPSender::MaxPayloadSize() const { 293 size_t RTPSender::MaxPayloadSize() const {
298 if (audio_configured_) { 294 if (audio_configured_) {
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { 1270 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) {
1275 return; 1271 return;
1276 } 1272 }
1277 rtp_overhead_bytes_per_packet_ = packet.headers_size(); 1273 rtp_overhead_bytes_per_packet_ = packet.headers_size();
1278 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; 1274 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_;
1279 } 1275 }
1280 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); 1276 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet);
1281 } 1277 }
1282 1278
1283 } // namespace webrtc 1279 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698