Removed static const network units.
Static const objects can cause what's called a "static initialization order fiasco". This CL removes the statically initialized network units in favor of constexpr defined versions available via static functions. Bug: webrtc:8415 Change-Id: Ib1b316ae007481c52a53b2d1bb0352a630a220e2 Reviewed-on: https://webrtc-review.googlesource.com/65164 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22670}
This commit is contained in:
committed by
Commit Bot
parent
9d2788f745
commit
63b48df334
@ -218,7 +218,7 @@ void GoogCcNetworkController::OnStreamsConfig(StreamsConfig msg) {
|
||||
|
||||
void GoogCcNetworkController::OnTargetRateConstraints(
|
||||
TargetRateConstraints constraints) {
|
||||
UpdateBitrateConstraints(constraints, DataRate::kNotInitialized);
|
||||
UpdateBitrateConstraints(constraints, DataRate());
|
||||
}
|
||||
|
||||
void GoogCcNetworkController::UpdateBitrateConstraints(
|
||||
|
||||
Reference in New Issue
Block a user