Index: webrtc/pc/peerconnectionfactory.cc |
diff --git a/webrtc/pc/peerconnectionfactory.cc b/webrtc/pc/peerconnectionfactory.cc |
index 6da4669773dc597f77be92c1a5a07c626ae3066d..2ff95f7e3960355a6e1ef5fe9e968b009da7ccff 100644 |
--- a/webrtc/pc/peerconnectionfactory.cc |
+++ b/webrtc/pc/peerconnectionfactory.cc |
@@ -333,12 +333,15 @@ rtc::Thread* PeerConnectionFactory::network_thread() { |
} |
std::unique_ptr<RtcEventLog> PeerConnectionFactory::CreateRtcEventLog_w() { |
+ RTC_DCHECK_RUN_ON(worker_thread_); |
return event_log_factory_ ? event_log_factory_->CreateRtcEventLog() |
: rtc::MakeUnique<RtcEventLogNullImpl>(); |
} |
std::unique_ptr<Call> PeerConnectionFactory::CreateCall_w( |
RtcEventLog* event_log) { |
+ RTC_DCHECK_RUN_ON(worker_thread_); |
+ |
const int kMinBandwidthBps = 30000; |
const int kStartBandwidthBps = 300000; |
const int kMaxBandwidthBps = 2000000; |