Index: webrtc/pc/peerconnection_unittest.cc |
diff --git a/webrtc/pc/peerconnection_unittest.cc b/webrtc/pc/peerconnection_unittest.cc |
index b7ddc24e0314832e158f0bc1814b80a2ee1f468a..df871356db9e2a021146ed16a77874d84547c26f 100644 |
--- a/webrtc/pc/peerconnection_unittest.cc |
+++ b/webrtc/pc/peerconnection_unittest.cc |
@@ -588,8 +588,9 @@ class PeerConnectionTestClient : public webrtc::PeerConnectionObserver, |
fake_capturer->SetRotation(capture_rotation_); |
video_capturers_.push_back(fake_capturer); |
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source = |
- peer_connection_factory_->CreateVideoSource(fake_capturer, |
- &source_constraints); |
+ peer_connection_factory_->CreateVideoSource( |
+ std::unique_ptr<cricket::VideoCapturer>(fake_capturer), |
+ &source_constraints); |
std::string label = stream_label + kVideoTrackLabelBase; |
rtc::scoped_refptr<webrtc::VideoTrackInterface> track( |