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

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

Issue 2922013002: Update constraints processing for video content capture. (Closed)
Patch Set: Rebase Created 3 years, 6 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_constraints_util_video_device.cc
diff --git a/content/renderer/media/media_stream_constraints_util_video_device.cc b/content/renderer/media/media_stream_constraints_util_video_device.cc
index b26be9811ceb9461b8589644b645462857e7c932..f2c361f9b37012bbdb6c72c40dfaa9ba31da1763 100644
--- a/content/renderer/media/media_stream_constraints_util_video_device.cc
+++ b/content/renderer/media/media_stream_constraints_util_video_device.cc
@@ -185,8 +185,8 @@ VideoCaptureSettings ComputeVideoDeviceCaptureSettings(
return VideoCaptureSettings(
candidate.device_id(), capture_params, candidate.noise_reduction(),
- track_adapter_settings,
- constrained_format.constrained_frame_rate().Min());
+ track_adapter_settings, constrained_format.constrained_frame_rate().Min(),
+ constrained_format.constrained_frame_rate().Max());
}
// Generic distance function between two numeric values. Based on the fitness

Powered by Google App Engine
This is Rietveld 408576698