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

Side by Side Diff: webrtc/call/call.cc

Issue 2840833002: Delete media type check in Call::NotifyBweOfReceivedPacket.
Patch Set: Comment update. Created 3 years, 7 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/api/stats/rtcstats_objects.h ('k') | webrtc/pc/rtcstats_integrationtest.cc » ('j') | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 if (!use_send_side_bwe && header.extension.hasTransportSequenceNumber) { 1270 if (!use_send_side_bwe && header.extension.hasTransportSequenceNumber) {
1271 // Inconsistent configuration of send side BWE. Do nothing. 1271 // Inconsistent configuration of send side BWE. Do nothing.
1272 // TODO(nisse): Without this check, we may produce RTCP feedback 1272 // TODO(nisse): Without this check, we may produce RTCP feedback
1273 // packets even when not negotiated. But it would be cleaner to 1273 // packets even when not negotiated. But it would be cleaner to
1274 // move the check down to RTCPSender::SendFeedbackPacket, which 1274 // move the check down to RTCPSender::SendFeedbackPacket, which
1275 // would also help the PacketRouter to select an appropriate rtp 1275 // would also help the PacketRouter to select an appropriate rtp
1276 // module in the case that some, but not all, have RTCP feedback 1276 // module in the case that some, but not all, have RTCP feedback
1277 // enabled. 1277 // enabled.
1278 return; 1278 return;
1279 } 1279 }
1280 // For audio, we only support send side BWE. 1280 receive_side_cc_.OnReceivedPacket(
1281 if (media_type == MediaType::VIDEO || 1281 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(),
stefan-webrtc 2017/05/05 12:26:39 I don't think it's safe to remove this. Let's say
1282 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { 1282 header);
1283 receive_side_cc_.OnReceivedPacket(
1284 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(),
1285 header);
1286 }
1287 } 1283 }
1288 1284
1289 } // namespace internal 1285 } // namespace internal
1290 1286
1291 } // namespace webrtc 1287 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | webrtc/pc/rtcstats_integrationtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698