Skip to content

Commit 55ed9ac

Browse files
authored
Merge pull request #115 from denisbevilacqua/fix_the_swift_runtime_failure_on_getimagepathfromuiimage
Fix the swift runtime failure on getImagePathFromUIImage
2 parents 80a183e + ec33254 commit 55ed9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/MediaResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func getThumbnail(from moviePath: String, in seconds: Double) -> String? {
9999
thumbnail = UIImage(cgImage: imgRef)
100100
}
101101

102-
let fullPath = getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb")
102+
let fullPath = thumbnail != nil ? getImagePathFromUIImage(uiImage: thumbnail!, prefix: "thumb") : nil
103103

104104
return fullPath;
105105

0 commit comments

Comments
 (0)