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

Unified Diff: media/cast/transport/rtp_sender/rtp_sender.cc

Issue 322953004: Cast: Don't cancel re-transmission for some cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged again Created 6 years, 6 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
« no previous file with comments | « media/cast/transport/rtp_sender/rtp_sender.h ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/transport/rtp_sender/rtp_sender.cc
diff --git a/media/cast/transport/rtp_sender/rtp_sender.cc b/media/cast/transport/rtp_sender/rtp_sender.cc
index b937396869b9b2b8f79041647020205695cbbeaf..359ccf3ba0ab369f457eba2d27db3af664d21d87 100644
--- a/media/cast/transport/rtp_sender/rtp_sender.cc
+++ b/media/cast/transport/rtp_sender/rtp_sender.cc
@@ -74,7 +74,8 @@ void RtpSender::SendFrame(const EncodedFrame& frame) {
}
void RtpSender::ResendPackets(
- const MissingFramesAndPacketsMap& missing_frames_and_packets) {
+ const MissingFramesAndPacketsMap& missing_frames_and_packets,
+ bool cancel_rtx_if_not_in_list) {
DCHECK(storage_);
// Iterate over all frames in the list.
for (MissingFramesAndPacketsMap::const_iterator it =
@@ -98,7 +99,8 @@ void RtpSender::ResendPackets(
// If the resend request doesn't include this packet then cancel
// re-transmission already in queue.
- if (!missing_packet_set.empty() &&
+ if (cancel_rtx_if_not_in_list &&
+ !missing_packet_set.empty() &&
missing_packet_set.find(packet_id) == missing_packet_set.end()) {
transport_->CancelSendingPacket(it->first);
} else {
« no previous file with comments | « media/cast/transport/rtp_sender/rtp_sender.h ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698