-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ImageCapture] Commit configuration changes after changing/restoring …
…settings for image capture https://bugs.webkit.org/show_bug.cgi?id=267580 rdar://121045984 Reviewed by Youenn Fablet. AVCapture sometimes throws an exception if an AVCaptureSession is started while it is being configured, so ensure that session configuration is ended explicitly after setting up or restoring session configuration for image capture. * Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp: (WebCore::RealtimeVideoCaptureSource::takePhoto): Call startApplyingConstraints and endApplyingConstraints around setting and restoring configuration. * Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::rejectPendingPhotoRequest): Drive-by: don't log if the photo producer doesn't exist. (WebCore::AVVideoCaptureSource::takePhotoInternal): Reject the promise if there are no settings. * Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp: (WebCore::MockRealtimeVideoSource::setFrameRateAndZoomWithPreset): Assert if `m_beingConfigured` is not set. (WebCore::MockRealtimeVideoSource::startProducingData): Ditto. (WebCore::MockRealtimeVideoSource::startApplyingConstraints): Set `m_beingConfigured`. (WebCore::MockRealtimeVideoSource::endApplyingConstraints): Clear `m_beingConfigured`. * Source/WebCore/platform/mock/MockRealtimeVideoSource.h: Canonical link: https://commits.webkit.org/273091@main
- Loading branch information
1 parent
15ebca4
commit 519c837
Showing
4 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters