| Index: talk/app/webrtc/objc/RTCPeerConnection.mm
|
| diff --git a/talk/app/webrtc/objc/RTCPeerConnection.mm b/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| index 44d39cb0902deede6d7e7ff403289a7ae697e090..84197c5979b737139bd79bedc7ff8db4488752a5 100644
|
| --- a/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| +++ b/talk/app/webrtc/objc/RTCPeerConnection.mm
|
| @@ -271,11 +271,13 @@ class RTCStatsObserver : public StatsObserver {
|
| - (instancetype)initWithFactory:(webrtc::PeerConnectionFactoryInterface*)factory
|
| iceServers:(const webrtc::PeerConnectionInterface::IceServers&)iceServers
|
| constraints:(const webrtc::MediaConstraintsInterface*)constraints {
|
| - NSParameterAssert(factory != NULL);
|
| + NSParameterAssert(factory != nullptr);
|
| if (self = [super init]) {
|
| + webrtc::PeerConnectionInterface::RTCConfiguration config;
|
| + config.servers = iceServers;
|
| _observer.reset(new webrtc::RTCPeerConnectionObserver(self));
|
| - _peerConnection = factory->CreatePeerConnection(
|
| - iceServers, constraints, NULL, NULL, _observer.get());
|
| + _peerConnection =
|
| + factory->CreatePeerConnection(config, constraints, nullptr, nullptr, _observer.get());
|
| _localStreams = [[NSMutableArray alloc] init];
|
| }
|
| return self;
|
|
|