Index: webrtc/pc/test/peerconnectiontestwrapper.cc |
diff --git a/webrtc/pc/test/peerconnectiontestwrapper.cc b/webrtc/pc/test/peerconnectiontestwrapper.cc |
index c4336996528ae2fcbb3d45ea931d3774e1b061ca..e5ead481b820769daffd0f8ba931cff171a99787 100644 |
--- a/webrtc/pc/test/peerconnectiontestwrapper.cc |
+++ b/webrtc/pc/test/peerconnectiontestwrapper.cc |
@@ -269,7 +269,9 @@ rtc::scoped_refptr<webrtc::MediaStreamInterface> |
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source = |
peer_connection_factory_->CreateVideoSource( |
- new webrtc::FakePeriodicVideoCapturer(), &constraints); |
+ std::unique_ptr<cricket::VideoCapturer>( |
+ new webrtc::FakePeriodicVideoCapturer()), |
+ &constraints); |
std::string videotrack_label = label + kVideoTrackLabelBase; |
rtc::scoped_refptr<webrtc::VideoTrackInterface> video_track( |
peer_connection_factory_->CreateVideoTrack(videotrack_label, source)); |