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

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: 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
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..83f6a7e0d16d342c813103380e422730f74d5ad5 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_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_not_in_list &&
+ !missing_packet_set.empty() &&
missing_packet_set.find(packet_id) == missing_packet_set.end()) {
transport_->CancelSendingPacket(it->first);
} else {

Powered by Google App Engine
This is Rietveld 408576698