Open xinyu1105 opened 6 years ago
self.isWriting = NO;
dispatch_async(self.dispatchQueue, ^{
[self.assetWriter finishWritingWithCompletionHandler:^{ if (self.assetWriter.status == AVAssetWriterStatusCompleted) { dispatch_async(dispatch_get_main_queue(), ^{ if ([self.delegate respondsToSelector:@selector(videoWriter:didOutputVideoAtPath:)]) { [self.delegate videoWriter:self didOutputVideoAtPath:self.assetWriter.outputURL]; } }); } else { *error = self.assetWriter.error; } self.assetWriter = nil; }];
}); }
这个怎么解决呢?麻烦回复下,谢谢!!
self.isWriting = NO;
dispatch_async(self.dispatchQueue, ^{
}); }
这个怎么解决呢?麻烦回复下,谢谢!!