Closed ruisebas closed 3 months ago
Attention: Patch coverage is 0%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 30.48%. Comparing base (
da7f9fa
) to head (4d96c38
). Report is 3 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
Sources/FaceLiveness/AV/VideoChunker.swift | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issue #, if available:
Description of changes:
This PR attempts to fix an
NSInternalInconsistencyException
crash that might be happening when callingAVAssetWriter.finishWriting
on an instance that is alreadycompleted
.There was a previous validation in place that checked if
state != .complete
, butstate
is a local variable that is not really tracking the write's state, so I decided to replace it withAVAssetWriter.status
.Check points: (check or cross out if not relevant)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.