Title: [218852] trunk/Source/WebCore
Revision
218852
Author
eric.carl...@apple.com
Date
2017-06-27 16:40:07 -0700 (Tue, 27 Jun 2017)

Log Message

r218647 causes getUserMedia to fail on some machines
https://bugs.webkit.org/show_bug.cgi?id=173894

Reviewed by Youenn Fablet.

* platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::AVVideoCaptureSource::isFrameRateSupported): Change frame rate epsilon from 0.00001
to 0.001.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (218851 => 218852)


--- trunk/Source/WebCore/ChangeLog	2017-06-27 23:29:22 UTC (rev 218851)
+++ trunk/Source/WebCore/ChangeLog	2017-06-27 23:40:07 UTC (rev 218852)
@@ -1,3 +1,14 @@
+2017-06-27  Eric Carlson  <eric.carl...@apple.com>
+
+        r218647 causes getUserMedia to fail on some machines
+        https://bugs.webkit.org/show_bug.cgi?id=173894
+
+        Reviewed by Youenn Fablet.
+
+        * platform/mediastream/mac/AVVideoCaptureSource.mm:
+        (WebCore::AVVideoCaptureSource::isFrameRateSupported): Change frame rate epsilon from 0.00001
+        to 0.001.
+
 2017-06-27  Antoine Quint  <grao...@apple.com>
 
         Placard icons act like buttons (can get keyboard focus and shows up in VoiceOver)

Modified: trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm (218851 => 218852)


--- trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm	2017-06-27 23:29:22 UTC (rev 218851)
+++ trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm	2017-06-27 23:40:07 UTC (rev 218852)
@@ -570,7 +570,7 @@
 
 bool AVVideoCaptureSource::isFrameRateSupported(double frameRate)
 {
-    double epsilon = 0.00001;
+    double epsilon = 0.001;
     for (AVFrameRateRangeType *range in [[device() activeFormat] videoSupportedFrameRateRanges]) {
         if (frameRate + epsilon >= range.minFrameRate && frameRate - epsilon <= range.maxFrameRate)
             return true;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to