From ec332546b218897c1def72f6915880dc402520df Mon Sep 17 00:00:00 2001 From: denisbevilacqua Date: Thu, 31 Aug 2023 08:42:13 -0300 Subject: [PATCH] Fix the swift runtime failure on getImagePathFromUIImage --- ios/MediaResponse.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/MediaResponse.swift b/ios/MediaResponse.swift index f7d51315..a153ceed 100644 --- a/ios/MediaResponse.swift +++ b/ios/MediaResponse.swift @@ -99,7 +99,7 @@ func getThumbnail(from moviePath: String, in seconds: Double) -> String? { thumbnail = UIImage(cgImage: imgRef) } - let fullPath = getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb") + let fullPath = thumbnail != nil ? getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb") : nil return fullPath;