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

Unified Diff: webrtc/call/call.cc

Issue 2686273002: Rename flexfec AddAndProcessReceivedPacket --> OnRtpPacket. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index e21b0762fe8429f21b87b38916c5c5b772ddb119..763e3919f7f236ecc97ef7b36cf10173a1dd6565 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -1222,7 +1222,7 @@ PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type,
if (parsed_packet) {
auto it_bounds = flexfec_receive_ssrcs_media_.equal_range(ssrc);
for (auto it = it_bounds.first; it != it_bounds.second; ++it)
- it->second->AddAndProcessReceivedPacket(*parsed_packet);
+ it->second->OnRtpPacket(*parsed_packet);
}
if (status == DELIVERY_OK)
event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length);
@@ -1233,12 +1233,9 @@ PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type,
auto it = flexfec_receive_ssrcs_protection_.find(ssrc);
if (it != flexfec_receive_ssrcs_protection_.end()) {
if (parsed_packet) {
- auto status = it->second->AddAndProcessReceivedPacket(*parsed_packet)
- ? DELIVERY_OK
- : DELIVERY_PACKET_ERROR;
- if (status == DELIVERY_OK)
- event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length);
- return status;
+ it->second->OnRtpPacket(*parsed_packet);
+ event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length);
+ return DELIVERY_OK;
}
}
}
« no previous file with comments | « no previous file | webrtc/call/flexfec_receive_stream_impl.h » ('j') | webrtc/call/flexfec_receive_stream_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698