Fix some threading issue.

This commit is contained in:
Damiano Galassi committed 2016-10-01 12:54:03 +02:00
1 parent d34a2876db
commit 9224a6e0db
4 files changed
+30 -16

No files matched your search

+3 -2
View File
@@ -325,10 +325,11 @@
[self didChangeValueForKey:@"fileURL"];
if (!self.cancelled) {
if ([self.fileURL isEqualTo:self.destURL] && (self.mp4File).hasFileRepresentation) {
if ([self.fileURL isEqualTo:self.destURL] && self.mp4File.hasFileRepresentation) {
// We have an existing mp4 file, update it
noErr = [self.mp4File updateMP4FileWithOptions:self.attributes error:outError];
} else {
}
else {
// Write the new file to disk
noErr = [self.mp4File writeToUrl:self.destURL
options:self.attributes