Index: webrtc/video/video_send_stream.cc |
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc |
index 2f8241e28ed1c6b0e273d982a83ef09a0ce35f1f..e9654dd29367449f6247e4350d6b54b9ef4de173 100644 |
--- a/webrtc/video/video_send_stream.cc |
+++ b/webrtc/video/video_send_stream.cc |
@@ -545,12 +545,10 @@ void VideoSendStream::Stop() { |
worker_queue_->PostTask([send_stream] { send_stream->Stop(); }); |
} |
-VideoCaptureInput* VideoSendStream::Input() { |
- // Input() will be called on the thread that deliverers video frames from |
- // libjingle. |
- // TODO(perkj): Refactor ViEEncoder to register directly as a VideoSink to the |
- // VideoSource. |
- return vie_encoder_.get(); |
+void VideoSendStream::SetSource( |
+ rtc::VideoSourceInterface<webrtc::VideoFrame>* source) { |
+ RTC_DCHECK_RUN_ON(&thread_checker_); |
+ vie_encoder_->SetSource(source); |
} |
void VideoSendStream::ReconfigureVideoEncoder(VideoEncoderConfig config) { |