Add a default to enable the old QuickTime importer.

This commit is contained in:
Damiano Galassi committed 2016-02-16 19:46:27 +01:00
1 parent 82dfc1b0f6
commit e276837efb
1 file changed
+16 -10
+16 -10
View File
@@ -36,18 +36,24 @@ static NSArray<NSString *> *_supportedFileFormats;
+ (void)initialize { + (void)initialize {
if (self == [MP42FileImporter class]) { if (self == [MP42FileImporter class]) {
_fileImporters = [@[[MP42MkvImporter class], NSMutableArray<Class> * fileImporters = [@[[MP42MkvImporter class],
[MP42Mp4Importer class], [MP42Mp4Importer class],
[MP42SrtImporter class], [MP42SrtImporter class],
[MP42CCImporter class], [MP42CCImporter class],
[MP42AC3Importer class], [MP42AC3Importer class],
[MP42AACImporter class], [MP42AACImporter class],
[MP42H264Importer class], [MP42H264Importer class],
[MP42VobSubImporter class], [MP42VobSubImporter class],
[MP42AVFImporter class]] mutableCopy];
#if !__LP64__ #if !__LP64__
[MP42QTImporter class], if ([[NSUserDefaults standardUserDefaults] boolForKey:@"MP42PreferQuickTime"]) {
[fileImporters insertObject:[MP42QTImporter class] atIndex:7];
}
#endif #endif
[MP42AVFImporter class]] retain];
_fileImporters = [fileImporters copy];
[fileImporters release];
NSMutableArray<NSString *> *formats = [[NSMutableArray alloc] init]; NSMutableArray<NSString *> *formats = [[NSMutableArray alloc] init];