Index: webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm b/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm |
index 96c5c3649a4a13f9ed4f9ee2504c068d643831b6..b004191f8b34855fc6676a489c213e2c97f1c8c6 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm |
+++ b/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm |
@@ -27,7 +27,8 @@ |
_capturer = new webrtc::AVFoundationVideoCapturer(); |
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source = |
factory.nativeFactory->CreateVideoSource( |
- _capturer, constraints.nativeConstraints.get()); |
+ std::unique_ptr<cricket::VideoCapturer>(_capturer), |
+ constraints.nativeConstraints.get()); |
return [super initWithNativeVideoSource:source]; |
} |