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..6b147af526026c84d3f5ab0779c310c0dfdb8bc4 100644 |
--- a/media/cast/video_sender/video_sender.h |
+++ b/media/cast/video_sender/video_sender.h |
@@ -102,6 +102,8 @@ class VideoSender : public base::NonThreadSafe, |
void InitializeTimers(); |
+ void UpdateBitrate(int32 new_bitrate); |
+ |
base::TimeDelta rtp_max_delay_; |
const int max_frame_rate_; |
@@ -124,6 +126,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 |