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:
parent
b6e857d30b
commit
b5b0b98f58
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user