Use the new MP42File init method.

This commit is contained in:
Damiano Galassi committed 2016-07-22 09:56:57 +02:00
1 parent f27fe0aa4c
commit 256534eb4a
1 file changed
+1 -1
+1 -1
View File
@@ -166,7 +166,7 @@
[self.fileURL getResourceValue:&type forKey:NSURLTypeIdentifierKey error:outError];
if ([type isEqualToString:@"com.apple.m4a-audio"] || [type isEqualToString:@"com.apple.m4v-video"] || [type isEqualToString:@"public.mpeg-4"]) {
self.mp4File = [[MP42File alloc] initWithURL:self.fileURL];
self.mp4File = [[MP42File alloc] initWithURL:self.fileURL error:NULL];
} else {
self.mp4File = [[MP42File alloc] init];
MP42FileImporter *fileImporter = [[MP42FileImporter alloc] initWithURL:self.fileURL error:outError];