| Index: talk/app/webrtc/objc/RTCPeerConnectionFactory.mm
|
| diff --git a/talk/app/webrtc/objc/RTCPeerConnectionFactory.mm b/talk/app/webrtc/objc/RTCPeerConnectionFactory.mm
|
| index c156df74a5c7a47fcb1967517979df9b7754b8d5..13afa8da236f013e0bbcf28f72bbe0bb5c295a3f 100644
|
| --- a/talk/app/webrtc/objc/RTCPeerConnectionFactory.mm
|
| +++ b/talk/app/webrtc/objc/RTCPeerConnectionFactory.mm
|
| @@ -99,8 +99,13 @@
|
| - (RTCPeerConnection *)peerConnectionWithConfiguration:(RTCConfiguration *)configuration
|
| constraints:(RTCMediaConstraints *)constraints
|
| delegate:(id<RTCPeerConnectionDelegate>)delegate {
|
| + std::unique_ptr<webrtc::PeerConnectionInterface::RTCConfiguration> config(
|
| + [configuration createNativeConfiguration]);
|
| + if (!config) {
|
| + return nil;
|
| + }
|
| return [[RTCPeerConnection alloc] initWithFactory:self.nativeFactory.get()
|
| - config:configuration.nativeConfiguration
|
| + config:*config
|
| constraints:constraints.constraints
|
| delegate:delegate];
|
| }
|
|
|