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

Unified Diff: webrtc/media/base/videobroadcaster.cc

Issue 1695263002: Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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/media/base/videocapturer.h » ('j') | webrtc/media/base/videosourceinterface.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videobroadcaster.cc
diff --git a/webrtc/media/base/videobroadcaster.cc b/webrtc/media/base/videobroadcaster.cc
index e369ee07c632480404080415271572d593c87f06..d45a89dafce6ce5316717a6c68f5bccb0be0abd7 100644
--- a/webrtc/media/base/videobroadcaster.cc
+++ b/webrtc/media/base/videobroadcaster.cc
@@ -36,6 +36,11 @@ void VideoBroadcaster::AddOrUpdateSink(
for (auto& sink_pair : sinks_) {
current_wants_.rotation_applied |= sink_pair.wants.rotation_applied;
}
+
+ // Only store the last request for scaling up / down...
+ // TODO(perkj): This would be simpler if the resolution request was for a
+ // fixed resolution.
+ current_wants_.resolution = wants.resolution;
}
void VideoBroadcaster::RemoveSink(
« no previous file with comments | « no previous file | webrtc/media/base/videocapturer.h » ('j') | webrtc/media/base/videosourceinterface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698