[Plugin Controller] Add Cue sheet safety check
If somehow a plugin doesn't load, skip cuesheet should skip it anyway, as we don't want any recursive loops. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
d9f111d735
commit
a4f2664ca4
1 changed files with 8 additions and 0 deletions
|
@ -630,6 +630,10 @@ static NSString *xmlEscapeString(NSString * string) {
|
|||
}
|
||||
}
|
||||
|
||||
if(skip && [classString isEqualToString:@"CueSheetDecoder"]) {
|
||||
classString = @"SilenceDecoder";
|
||||
}
|
||||
|
||||
Class decoder = NSClassFromString(classString);
|
||||
|
||||
return [[decoder alloc] init];
|
||||
|
@ -671,6 +675,10 @@ static NSString *xmlEscapeString(NSString * string) {
|
|||
return nil;
|
||||
}
|
||||
|
||||
if(skip && [classString isEqualToString:@"CueSheetMetadataReader"]) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
Class metadataReader = NSClassFromString(classString);
|
||||
|
||||
cacheData = [metadataReader metadataForURL:url];
|
||||
|
|
Loading…
Reference in a new issue