Index: webrtc/video/video_send_stream.cc |
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc |
index 6dc68484d118da216a0d24116c5f99ff0ce0bab5..41f8b3f3676e958d8b7f493a248cc2f054eb36fc 100644 |
--- a/webrtc/video/video_send_stream.cc |
+++ b/webrtc/video/video_send_stream.cc |
@@ -617,7 +617,11 @@ VideoSendStream::VideoSendStream( |
// it was created on. |
thread_sync_event_.Wait(rtc::Event::kForever); |
send_stream_->RegisterProcessThread(module_process_thread); |
- vie_encoder_->SetBitrateObserver(send_stream_.get()); |
+ // TODO(sprang): Enable this also for regular video calls if it works well. |
+ if (encoder_config.content_type == VideoEncoderConfig::ContentType::kScreen) { |
+ // Only signal target bitrate for screenshare streams, for now. |
+ vie_encoder_->SetBitrateObserver(send_stream_.get()); |
+ } |
vie_encoder_->RegisterProcessThread(module_process_thread); |
ReconfigureVideoEncoder(std::move(encoder_config)); |