Fixed the way plugin controller was setup and loaded.

Updated cuesheet to search for alternate types if wav is not there.
CQTexperiment
vspader 2007-10-20 15:53:52 +00:00
parent cc806285e0
commit 9a344922da
5 changed files with 6 additions and 6 deletions

View File

@ -25,8 +25,6 @@
outputLaunched = NO;
chainQueue = [[NSMutableArray alloc] init];
[[PluginController sharedPluginController] setup];
}
return self;

View File

@ -48,6 +48,8 @@
@end
@protocol CogPluginController <NSObject>
+ (id<CogPluginController>)sharedPluginController;
- (NSDictionary *)sources;
- (NSDictionary *)containers;
- (NSDictionary *)metadataReaders;

View File

@ -20,8 +20,6 @@
BOOL isSetup;
}
+ (PluginController *)sharedPluginController; //Use this to get the instance.
- (void)setup;
- (void)printPluginInfo;

View File

@ -6,7 +6,7 @@
//Start of singleton-related stuff.
static PluginController *sharedPluginController = nil;
+ (PluginController*)sharedPluginController
+ (id<CogPluginController>)sharedPluginController
{
@synchronized(self) {
if (sharedPluginController == nil) {
@ -68,6 +68,8 @@ static PluginController *sharedPluginController = nil;
decodersByExtension = [[NSMutableDictionary alloc] init];
decodersByMimeType = [[NSMutableDictionary alloc] init];
[self setup];
}
return self;

View File

@ -179,7 +179,7 @@
NSString* originalURL = [url path];
NSString *ext;
NSEnumerator *e = [[NSClassFromString(@"PluginController") decodersByExtension] objectEnumerator];
NSEnumerator *e = [[[NSClassFromString(@"PluginController") sharedPluginController] decodersByExtension] objectEnumerator];
while (ext = [e nextObject])
{
NSMutableString* newURL = [originalURL mutableCopy];