diff --git a/Sources/FaceLiveness/AV/VideoChunker.swift b/Sources/FaceLiveness/AV/VideoChunker.swift index 8b014ba1..962cb798 100644 --- a/Sources/FaceLiveness/AV/VideoChunker.swift +++ b/Sources/FaceLiveness/AV/VideoChunker.swift @@ -44,7 +44,7 @@ final class VideoChunker { state = .awaitingSingleFrame // explicitly calling `endSession` is unnecessary - if state != .complete { + if assetWriter.status != .completed { assetWriter.finishWriting {} } }