Add ability to disable padding prioritization.

This allows trading off some potential media quality for CPU usage.

Bug: webrtc:8975
Change-Id: I447a03f596e9e711ba5d7038fe71f27bd80bf795
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172085
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30936}
This commit is contained in:
Erik Språng
2020-03-30 10:01:29 +02:00
committed by Commit Bot
parent e9286d7273
commit 641d59b337
6 changed files with 141 additions and 51 deletions

View File

@ -223,7 +223,7 @@ class StreamDataTestCallback : public StreamDataCountersCallback {
// wherever possible.
struct RtpSenderContext {
explicit RtpSenderContext(const RtpRtcp::Configuration& config)
: packet_history_(config.clock),
: packet_history_(config.clock, config.enable_rtx_padding_prioritization),
packet_sender_(config, &packet_history_),
non_paced_sender_(&packet_sender_),
packet_generator_(