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

Unified Diff: media/cast/video_sender/video_sender.h

Issue 276783002: Cast: Reduce bitrate drastically when close to unacked frame limit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | media/cast/video_sender/video_sender.cc » ('j') | media/cast/video_sender/video_sender.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/video_sender.h
diff --git a/media/cast/video_sender/video_sender.h b/media/cast/video_sender/video_sender.h
index 89ff938ae65d0bf0ee63eae15d3016d5af3414b8..394da0b2f5f5929c8b3db146a1e542b8fac377ce 100644
--- a/media/cast/video_sender/video_sender.h
+++ b/media/cast/video_sender/video_sender.h
@@ -124,6 +124,10 @@ class VideoSender : public base::NonThreadSafe,
base::TimeTicks last_checked_skip_count_time_;
int last_skip_count_;
int current_requested_bitrate_;
+ // When we get close to the max number of un-acked frames, we set lower
+ // the bitrate drastically to ensure that we catch up. Without this we
+ // risk getting stuck in a catch-up state forever.
+ int current_bitrate_divider_;
CongestionControl congestion_control_;
// This is a "good enough" mapping for finding the RTP timestamp associated
« no previous file with comments | « no previous file | media/cast/video_sender/video_sender.cc » ('j') | media/cast/video_sender/video_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698