| Index: webrtc/media/base/videocapturer.cc
|
| diff --git a/webrtc/media/base/videocapturer.cc b/webrtc/media/base/videocapturer.cc
|
| index f2933240f9ca6483d6b1f30292ea92807ff7757a..b9d865ef46adff30826ce6b24b438889fa3b747d 100644
|
| --- a/webrtc/media/base/videocapturer.cc
|
| +++ b/webrtc/media/base/videocapturer.cc
|
| @@ -320,6 +320,7 @@ void VideoCapturer::GetStats(VariableInfo<int>* adapt_drops_stats,
|
| void VideoCapturer::RemoveSink(
|
| rtc::VideoSinkInterface<cricket::VideoFrame>* sink) {
|
| broadcaster_.RemoveSink(sink);
|
| + OnSinkWantsChanged(broadcaster_.wants());
|
| }
|
|
|
| void VideoCapturer::AddOrUpdateSink(
|
| @@ -334,6 +335,11 @@ void VideoCapturer::OnSinkWantsChanged(const rtc::VideoSinkWants& wants) {
|
| if (frame_factory_) {
|
| frame_factory_->SetApplyRotation(apply_rotation_);
|
| }
|
| +
|
| + if (video_adapter()) {
|
| + video_adapter()->OnCpuResolutionRequest(wants.max_pixel_count,
|
| + wants.max_pixel_count_step_up);
|
| + }
|
| }
|
|
|
| void VideoCapturer::OnFrameCaptured(VideoCapturer*,
|
|
|