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

Unified Diff: webrtc/api/videosource.cc

Issue 1711763003: New flag is_screencast in VideoOptions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix use-after-free of FakeVideoSendStream. Created 4 years, 10 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 | webrtc/api/videosource_unittest.cc » ('j') | webrtc/api/videosource_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/videosource.cc
diff --git a/webrtc/api/videosource.cc b/webrtc/api/videosource.cc
index 3a55cd501899ff7d37b5ecbed6ab1c9019165e2a..1b581730900d406a2c9ddc84d46437616e8f3d49 100644
--- a/webrtc/api/videosource.cc
+++ b/webrtc/api/videosource.cc
@@ -359,6 +359,7 @@ void VideoSource::Initialize(
return;
}
options_.SetAll(options);
+ options_.is_screencast = rtc::Optional<bool>(video_capturer_->IsScreencast());
format_ = GetBestCaptureFormat(formats);
// Start the camera with our best guess.
« no previous file with comments | « no previous file | webrtc/api/videosource_unittest.cc » ('j') | webrtc/api/videosource_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698