Index: talk/app/webrtc/videosource.cc |
diff --git a/talk/app/webrtc/videosource.cc b/talk/app/webrtc/videosource.cc |
index 5cef7be6a2c4fa71f25301a1b63454b9e73d03c0..5bd735af1c6f0bd97e97596bd477f0f01dbef08e 100644 |
--- a/talk/app/webrtc/videosource.cc |
+++ b/talk/app/webrtc/videosource.cc |
@@ -331,21 +331,23 @@ namespace webrtc { |
rtc::scoped_refptr<VideoSource> VideoSource::Create( |
cricket::ChannelManager* channel_manager, |
cricket::VideoCapturer* capturer, |
- const webrtc::MediaConstraintsInterface* constraints) { |
+ const webrtc::MediaConstraintsInterface* constraints, |
+ bool remote) { |
ASSERT(channel_manager != NULL); |
ASSERT(capturer != NULL); |
- rtc::scoped_refptr<VideoSource> source( |
- new rtc::RefCountedObject<VideoSource>(channel_manager, |
- capturer)); |
+ rtc::scoped_refptr<VideoSource> source(new rtc::RefCountedObject<VideoSource>( |
+ channel_manager, capturer, remote)); |
source->Initialize(constraints); |
return source; |
} |
VideoSource::VideoSource(cricket::ChannelManager* channel_manager, |
- cricket::VideoCapturer* capturer) |
+ cricket::VideoCapturer* capturer, |
+ bool remote) |
: channel_manager_(channel_manager), |
video_capturer_(capturer), |
- state_(kInitializing) { |
+ state_(kInitializing), |
+ remote_(remote) { |
channel_manager_->SignalVideoCaptureStateChange.connect( |
this, &VideoSource::OnStateChange); |
} |