mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
rtpgccbwe: Improve packet handling
Both the delay-based *and* loss-based estimates should be computed instead of just one. This ensures faster adaptation. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1179>
This commit is contained in:
parent
4cc2498c24
commit
31b06e52ea
1 changed files with 3 additions and 5 deletions
|
@ -1190,11 +1190,9 @@ impl ObjectSubclass for BandwidthEstimator {
|
|||
let mut state = this.state.lock().unwrap();
|
||||
|
||||
state.detector.update(&mut packets);
|
||||
if !state.delay_control(&bwe) {
|
||||
state.loss_control(&bwe)
|
||||
} else {
|
||||
true
|
||||
}
|
||||
let bitrate_updated_by_delay = state.delay_control(&bwe);
|
||||
let bitrate_updated_by_loss = state.loss_control(&bwe);
|
||||
bitrate_updated_by_delay || bitrate_updated_by_loss
|
||||
};
|
||||
|
||||
if bitrate_changed {
|
||||
|
|
Loading…
Reference in a new issue