Add check for send-side bwe before applying alr settings

Bug: webrtc:7694
Change-Id: I359b27b96239af4e067055fc77ea285824e69edf
Reviewed-on: https://webrtc-review.googlesource.com/14603
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20423}
This commit is contained in:
Erik Språng
2017-10-24 17:05:18 +02:00
committed by Commit Bot
parent 58b72914d8
commit 7c8cca3dce
4 changed files with 107 additions and 15 deletions

View File

@ -365,6 +365,11 @@ void PacedSender::SetPacingFactor(float pacing_factor) {
SetEstimatedBitrate(estimated_bitrate_bps_);
}
float PacedSender::GetPacingFactor() const {
rtc::CritScope cs(&critsect_);
return pacing_factor_;
}
void PacedSender::SetQueueTimeLimit(int limit_ms) {
rtc::CritScope cs(&critsect_);
queue_time_limit = limit_ms;

View File

@ -144,6 +144,7 @@ class PacedSender : public Pacer {
// Called when the prober is associated with a process thread.
void ProcessThreadAttached(ProcessThread* process_thread) override;
void SetPacingFactor(float pacing_factor);
float GetPacingFactor() const;
void SetQueueTimeLimit(int limit_ms);
private: