summaryrefslogtreecommitdiffstats
path: root/tests/auto/integration/qsoundeffect
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2022-11-29 13:01:22 +0100
committerArtem Dyomin <artem.dyomin@qt.io>2022-12-02 12:10:01 +0000
commit569d91d8560620d697dd8cc7c49581c7ff70b8ce (patch)
treea5617b8d931630d964bf4a9810a3a28da14f1672 /tests/auto/integration/qsoundeffect
parent0f3c93716e246dd98d320a4e37ac08b7e152bb09 (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 'tests/auto/integration/qsoundeffect')
0 files changed, 0 insertions, 0 deletions