Skip to content
Prev Previous commit
Next Next commit
change comment
  • Loading branch information
misos1 committed Jul 17, 2024
commit 172b3bfcf22fe271efc88e21d74fa0ba35592085
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,8 @@ - (void)stopVideoRecordingWithCompletion:(void (^)(NSString *_Nullable,

// when _isRecording is YES startWriting was already called so _videoWriter.status
// is always either AVAssetWriterStatusWriting or AVAssetWriterStatusFailed and
// finishWritingWithCompletionHandler does not throw exception
// finishWritingWithCompletionHandler does not throw exception so there is no need
// to check _videoWriter.status
[_videoWriter finishWritingWithCompletionHandler:^{
if (self->_videoWriter.status == AVAssetWriterStatusCompleted) {
[self updateOrientation];
Expand Down