diff options
author | Artem Dyomin <artem.dyomin@qt.io> | 2022-11-29 13:01:22 +0100 |
---|---|---|
committer | Artem Dyomin <artem.dyomin@qt.io> | 2022-12-02 12:10:01 +0000 |
commit | 569d91d8560620d697dd8cc7c49581c7ff70b8ce (patch) | |
tree | a5617b8d931630d964bf4a9810a3a28da14f1672 /src/plugins/common/evr/evrcustompresenter.h | |
parent | 0f3c93716e246dd98d320a4e37ac08b7e152bb09 (diff) |
Fix crash on macos13 with iphone camera
On macos13 new feature has been introduced:
possibility using a camera of paired iphone on macos.
The feature works but it's a bit buggy: AVCaptureDevice.hasFlash is true
but none of flash modes is supported.
Setting of not supported flash mode causes exception.
The exeptions happens when setting AVCaptureFlashModeOff, but,
in theory, it can occur in other corner cases.
Documentation recommentds to check if flash mode supported in order to
avoid exceptions.
So, what's done:
- checking of supported flash and torch modes before setting
- use captureDevice.isFlashAvailable not only for mac os since
ios camera can be paired
Task-number: QTBUG-108018
Change-Id: I42772edb4c26481283d1bd321914bf40284efde9
Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/plugins/common/evr/evrcustompresenter.h')
0 files changed, 0 insertions, 0 deletions