Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: webrtc/video/video_send_stream.cc

Issue 2625893004: Signal target bitrate only for screenshare streams (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..685e95bf7f8297c261a149bcbf0cde41f0ea97b5 100644
--- a/webrtc/video/video_send_stream.cc
+++ b/webrtc/video/video_send_stream.cc
@@ -617,7 +617,10 @@ 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());
+ if (encoder_config.content_type == VideoEncoderConfig::ContentType::kScreen) {
+ // Only signal target bitrate for screenshare streams, for now.
danilchap 2017/01/12 11:27:57 Can you write a TODO when it should be turned on f
sprang_webrtc 2017/01/12 11:52:14 Done.
+ vie_encoder_->SetBitrateObserver(send_stream_.get());
+ }
vie_encoder_->RegisterProcessThread(module_process_thread);
ReconfigureVideoEncoder(std::move(encoder_config));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698