longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.71k stars 950 forks source link

快速点击switchButton切换摄像头依然crash,必现; #897

Closed mtc1146 closed 3 months ago

mtc1146 commented 3 months ago

Issue Description

Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

Info

ZLPhotoBrowser version: e.g. 4.5.0 Device: e.g. iPhone 14 Pro Device version: e.g. iOS 16.0 Xcode version: e.g. Xcode 14.0

Configuration code of ZLPhotoConfiguration

   Paste your code here.
mtc1146 commented 3 months ago

尝试将设置AVCaptureDeviceInput的时机由并发改为串行可以解决,供参考

longitachi commented 3 months ago

https://github.com/longitachi/ZLPhotoBrowser/issues/894

master已修复,这两天会发一个小版本