Archive container handler now skips files unsupported by the installed decoder plugins
This commit is contained in:
parent
34632b8a36
commit
870357a385
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ static NSString * g_make_unpack_path(NSString * archive, NSString * file, NSStri
|
||||||
NSMutableArray *files = [NSMutableArray array];
|
NSMutableArray *files = [NSMutableArray array];
|
||||||
|
|
||||||
while ( !fex_done(fex) ) {
|
while ( !fex_done(fex) ) {
|
||||||
[files addObject:[NSURL URLWithString:[g_make_unpack_path([url path], [NSString stringWithUTF8String:fex_name(fex)], @"fex") stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
|
NSString *name = [NSString stringWithUTF8String:fex_name(fex)];
|
||||||
|
if ([[NSClassFromString(@"AudioPlayer") fileTypes] containsObject:[[name pathExtension] lowercaseString]])
|
||||||
|
[files addObject:[NSURL URLWithString:[g_make_unpack_path([url path], name, @"fex") stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
|
||||||
fex_next(fex);
|
fex_next(fex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue