| Index: webrtc/pc/peerconnection.cc
|
| diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc
|
| index 12891df16bedad5253c0fcc356404aba41f67ef9..d7cd1c3ecd8c01d2a97b993da801fe6dce350829 100644
|
| --- a/webrtc/pc/peerconnection.cc
|
| +++ b/webrtc/pc/peerconnection.cc
|
| @@ -1289,6 +1289,19 @@ RTCError PeerConnection::SetBitrate(const BitrateParameters& bitrate) {
|
| return RTCError::OK();
|
| }
|
|
|
| +RTCError PeerConnection::SetBitrateAllocationStrategy(
|
| + rtc::BitrateAllocationStrategy* bitrate_allocation_strategy) {
|
| + rtc::Thread* worker_thread = factory_->worker_thread();
|
| + if (!worker_thread->IsCurrent()) {
|
| + return worker_thread->Invoke<RTCError>(
|
| + RTC_FROM_HERE, rtc::Bind(&PeerConnection::SetBitrateAllocationStrategy,
|
| + this, bitrate_allocation_strategy));
|
| + }
|
| + RTC_DCHECK(call_.get());
|
| + call_->SetBitrateAllocationStrategy(bitrate_allocation_strategy);
|
| + return RTCError::OK();
|
| +}
|
| +
|
| bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file,
|
| int64_t max_size_bytes) {
|
| return factory_->worker_thread()->Invoke<bool>(
|
|
|