From 5b2d6e5668d965c861a2a6e836b490016515d25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Pe=CC=81rez=20Go=CC=81mez?= Date: Thu, 4 Feb 2021 08:55:50 +0100 Subject: [PATCH] Added missing callback when recording stops and the user don't give any permissions to save the image in the Photo Library --- Sources/CameraManager.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/CameraManager.swift b/Sources/CameraManager.swift index a568cea..0979ae3 100644 --- a/Sources/CameraManager.swift +++ b/Sources/CameraManager.swift @@ -898,6 +898,8 @@ open class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGest PHPhotoLibrary.requestAuthorization { autorizationStatus in if autorizationStatus == .authorized { self._saveVideoToLibrary(outputFileURL) + } else { + _executeVideoCompletionWithURL(outputFileURL, error: error as NSError?) } } }