Skip to content

Commit 0263052

Browse files
committedMar 20, 2025
Reset audioReader to nil if no audio
1 parent 2e5f4b2 commit 0263052

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎LivePhoto.swift

+3
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ class LivePhoto {
231231
print(error)
232232
}
233233
}
234+
else {
235+
audioReader = nil
236+
}
234237
// Create necessary identifier metadata and still image time metadata
235238
let assetIdentifierMetadata = metadataForAssetID(assetIdentifier)
236239
let stillImageTimeMetadataAdapter = createMetadataAdaptorForStillImageTime()

0 commit comments

Comments
 (0)
Please sign in to comment.