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

Unified Diff: content/renderer/media/media_stream_video_source.cc

Issue 2777703002: Introduce SelectSettings algorithm for MediaStream video tracks. (Closed)
Patch Set: static asserts Created 3 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
Index: content/renderer/media/media_stream_video_source.cc
diff --git a/content/renderer/media/media_stream_video_source.cc b/content/renderer/media/media_stream_video_source.cc
index 41fa5e8eabb14759ed878f84d2ec1feb48eeb77f..89ddd92bdd510b6450517c9a44fba3b3f571615a 100644
--- a/content/renderer/media/media_stream_video_source.cc
+++ b/content/renderer/media/media_stream_video_source.cc
@@ -579,9 +579,10 @@ void MediaStreamVideoSource::FinalizeAddTrack() {
if (track.constraints.basic().frameRate.hasMax())
max_frame_rate = track.constraints.basic().frameRate.max();
- track_adapter_->AddTrack(track.track, track.frame_callback, max_width,
- max_height, min_aspect_ratio, max_aspect_ratio,
- max_frame_rate);
+ track_adapter_->AddTrack(
+ track.track, track.frame_callback,
+ VideoTrackAdapterSettings(max_width, max_height, min_aspect_ratio,
+ max_aspect_ratio, max_frame_rate));
// Calculate resulting frame size if the source delivers frames
// according to the current format. Note: Format may change later.
gfx::Size desired_size;

Powered by Google App Engine
This is Rietveld 408576698