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

Unified Diff: chrome/browser/media/cast_transport_host_filter.cc

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix 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: chrome/browser/media/cast_transport_host_filter.cc
diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
index 828ec8dc120dd4e9ba4ceec13a9dd1d6a376f738..b09ca96c25b9146a6c0a1f2ab1657191fbd6659f 100644
--- a/chrome/browser/media/cast_transport_host_filter.cc
+++ b/chrome/browser/media/cast_transport_host_filter.cc
@@ -179,11 +179,13 @@ void CastTransportHostFilter::OnResendPackets(
int32 channel_id,
bool is_audio,
const media::cast::MissingFramesAndPacketsMap& missing_packets,
- bool cancel_rtx_if_not_in_list) {
+ bool cancel_rtx_if_not_in_list,
+ base::TimeDelta dedupe_window) {
media::cast::transport::CastTransportSender* sender =
id_map_.Lookup(channel_id);
if (sender) {
- sender->ResendPackets(is_audio, missing_packets, cancel_rtx_if_not_in_list);
+ sender->ResendPackets(
+ is_audio, missing_packets, cancel_rtx_if_not_in_list, dedupe_window);
} else {
DVLOG(1)
<< "CastTransportHostFilter::OnResendPackets on non-existing channel";
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.h ('k') | chrome/browser/media/cast_transport_host_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698