Index: webrtc/api/videotrack.cc |
diff --git a/webrtc/api/videotrack.cc b/webrtc/api/videotrack.cc |
index 11a0177c773e0b6b058b640dd60c81873803d12e..b776509930a5ced8448935b97e30a98750a25f9a 100644 |
--- a/webrtc/api/videotrack.cc |
+++ b/webrtc/api/videotrack.cc |
@@ -21,7 +21,7 @@ VideoTrack::VideoTrack(const std::string& label, |
: MediaStreamTrack<VideoTrackInterface>(label), |
video_source_(video_source) { |
if (video_source_) |
- video_source_->AddSink(&renderers_); |
+ video_source_->AddOrUpdateSink(&renderers_, rtc::VideoSinkWants()); |
} |
VideoTrack::~VideoTrack() { |