Changeset 278415 in webkit
- Timestamp:
- Jun 3, 2021, 12:40:39 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/mediastream/RealtimeVideoCaptureSource.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278411 r278415 1 2021-06-03 Youenn Fablet <youenn@apple.com> 2 3 Do not recalibrate camera if the settings are the same 4 https://bugs.webkit.org/show_bug.cgi?id=226585 5 6 Reviewed by Eric Carlson. 7 8 Make sure to not update the preset if the constraints are equal to the current settings. 9 Manually tested. 10 11 * platform/mediastream/RealtimeVideoCaptureSource.cpp: 12 (WebCore::RealtimeVideoCaptureSource::clientUpdatedSizeAndFrameRate): 13 1 14 2021-06-03 Alan Bujtas <zalan@apple.com> 2 15 -
trunk/Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp
r278253 r278415 408 408 // FIXME: We only change settings if capture resolution is below requested one. We should get the best preset for all clients. 409 409 auto& settings = this->settings(); 410 if (width && *width < static_cast<int>(settings.width()))410 if (width && *width <= static_cast<int>(settings.width())) 411 411 width = { }; 412 if (height && *height < static_cast<int>(settings.height()))412 if (height && *height <= static_cast<int>(settings.height())) 413 413 height = { }; 414 if (frameRate && *frameRate < static_cast<double>(settings.frameRate()))414 if (frameRate && *frameRate <= static_cast<double>(settings.frameRate())) 415 415 frameRate = { }; 416 416
Note:
See TracChangeset
for help on using the changeset viewer.