Enabled more warnings, switched the deployment target to 10.7 and minor code cleanup
This commit is contained in:
1 parent
efc0e794c0
commit
e5095a611a
33 files changed
+167
-258
No files matched your search
+8
-11
@@ -59,18 +59,15 @@
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"idx"] == NSOrderedSame)
|
||||
self = [MP42VobSubImporter alloc];
|
||||
#if !__LP64__
|
||||
/*else if ([[fileURL pathExtension] caseInsensitiveCompare: @"mov"] == NSOrderedSame) {
|
||||
else if ([[fileURL pathExtension] caseInsensitiveCompare: @"mov"] == NSOrderedSame) {
|
||||
self = [MP42QTImporter alloc];
|
||||
}*/
|
||||
}
|
||||
#endif
|
||||
// If we are on 10.7 or later, use the AVFoundation path
|
||||
else if (NSClassFromString(@"AVAsset")) {
|
||||
if ([[fileURL pathExtension] caseInsensitiveCompare: @"m2ts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"ts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"mts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"mov"] == NSOrderedSame) {
|
||||
self = [MP42AVFImporter alloc];
|
||||
}
|
||||
else if ([[fileURL pathExtension] caseInsensitiveCompare: @"m2ts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"ts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"mts"] == NSOrderedSame ||
|
||||
[[fileURL pathExtension] caseInsensitiveCompare: @"mov"] == NSOrderedSame) {
|
||||
self = [MP42AVFImporter alloc];
|
||||
}
|
||||
|
||||
if (self) {
|
||||
@@ -162,7 +159,7 @@
|
||||
|
||||
- (BOOL)done
|
||||
{
|
||||
return _done;
|
||||
return (_done > 0);
|
||||
}
|
||||
|
||||
- (void)setDone:(BOOL)status {
|
||||
|
||||
Reference in new issue
Block a user