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

Unified Diff: webrtc/api/rtpsender.cc

Issue 1773993002: Add VideoTrackSource implementation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments Created 4 years, 9 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 | « webrtc/api/mediastreaminterface.h ('k') | webrtc/api/rtpsenderreceiver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtpsender.cc
diff --git a/webrtc/api/rtpsender.cc b/webrtc/api/rtpsender.cc
index c5db92946d200ab0d643107cfa871fe4e6c519a6..56ffdde65ed561faa8661af0d62b0c2619a440de 100644
--- a/webrtc/api/rtpsender.cc
+++ b/webrtc/api/rtpsender.cc
@@ -320,12 +320,14 @@ void VideoRtpSender::Stop() {
void VideoRtpSender::SetVideoSend() {
RTC_DCHECK(!stopped_ && can_send_track());
- const cricket::VideoOptions* options = nullptr;
+ cricket::VideoOptions options;
VideoTrackSourceInterface* source = track_->GetSource();
- if (track_->enabled() && source) {
- options = source->options();
+ if (source) {
+ options.is_screencast = rtc::Optional<bool>(source->is_screencast());
+ options.video_noise_reduction =
+ rtc::Optional<bool>(source->needs_denoising());
}
- provider_->SetVideoSend(ssrc_, track_->enabled(), options);
+ provider_->SetVideoSend(ssrc_, track_->enabled(), &options);
}
} // namespace webrtc
« no previous file with comments | « webrtc/api/mediastreaminterface.h ('k') | webrtc/api/rtpsenderreceiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698