Allow webrtc::test::VcmCapturer to be updated with its current sink.

BUG=none

Review-Url: https://codereview.webrtc.org/2470393002
Cr-Commit-Position: refs/heads/master@{#14967}
This commit is contained in:
philipel 2016-11-08 02:09:52 -08:00 committed by Commit bot
parent b6e857d30b
commit b5b0b98f58

View File

@ -78,7 +78,7 @@ void VcmCapturer::Stop() {
void VcmCapturer::AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink,
const rtc::VideoSinkWants& wants) {
rtc::CritScope lock(&crit_);
RTC_CHECK(!sink_);
RTC_CHECK(!sink_ || sink_ == sink);
sink_ = sink;
}