Only use BBRs pacer if the unit test is running BBR.
Otherwise use WebRTCs default pacer. BUG=None Review-Url: https://codereview.webrtc.org/3009363002 Cr-Commit-Position: refs/heads/master@{#19797}
This commit is contained in:
parent
0c011d9499
commit
661d94996b
@ -159,9 +159,10 @@ PacedVideoSender::PacedVideoSender(PacketProcessorListener* listener,
|
||||
VideoSource* source,
|
||||
BandwidthEstimatorType estimator)
|
||||
: VideoSender(listener, source, estimator),
|
||||
// Ugly hack to use BBR's pacer.
|
||||
// TODO(gnish): Make pacer choice dependant on the algorithm being used.
|
||||
pacer_(new BbrPacedSender(&clock_, this, nullptr)) {
|
||||
pacer_(
|
||||
estimator == kBbrEstimator
|
||||
? static_cast<Pacer*>(new BbrPacedSender(&clock_, this, nullptr))
|
||||
: static_cast<Pacer*>(new PacedSender(&clock_, this, nullptr))) {
|
||||
modules_.push_back(pacer_.get());
|
||||
pacer_->SetEstimatedBitrate(source->bits_per_second());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user