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

Unified Diff: media/cast/transport/pacing/paced_sender.cc

Issue 147993010: Cast: end2end bug fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + nits Created 6 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
« no previous file with comments | « media/cast/test/utility/video_utility.cc ('k') | media/cast/transport/rtp_sender/rtp_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/transport/pacing/paced_sender.cc
diff --git a/media/cast/transport/pacing/paced_sender.cc b/media/cast/transport/pacing/paced_sender.cc
index 46b0776173fa41e6449e33ee272dcdd396d49d66..976e68ad8d60c33e50ff84f806a3cfcd24d84d32 100644
--- a/media/cast/transport/pacing/paced_sender.cc
+++ b/media/cast/transport/pacing/paced_sender.cc
@@ -67,7 +67,7 @@ bool PacedSender::SendPacketsToTransport(const PacketList& packets,
}
packets_not_sent->insert(
packets_not_sent->end(), first_to_store_it, packets.end());
- packets_sent_in_burst_ += packets_to_send.size();
+ packets_sent_in_burst_ = packets_to_send.size();
if (packets_to_send.empty())
return true;
@@ -127,6 +127,8 @@ void PacedSender::SendStoredPackets() {
if (packet_list_.empty()) {
burst_size_ = 1; // Reset burst size after we sent the last stored packet
packets_sent_in_burst_ = 0;
+ } else {
+ packets_sent_in_burst_ = packets_to_resend.size();
}
}
TransmitPackets(packets_to_resend);
« no previous file with comments | « media/cast/test/utility/video_utility.cc ('k') | media/cast/transport/rtp_sender/rtp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698