Fixed CogAudio bool bug.

CQTexperiment
matthewleon 2008-03-01 15:32:28 +00:00
parent 6b35fee9e3
commit a0cdf1a03e
1 changed files with 18 additions and 18 deletions

View File

@ -70,16 +70,16 @@ static PluginController *sharedPluginController = nil;
- (id)init { - (id)init {
self = [super init]; self = [super init];
if (self) { if (self) {
sources = [[NSMutableDictionary alloc] init]; self.sources = [[[NSMutableDictionary alloc] init] autorelease];
containers = [[NSMutableDictionary alloc] init]; self.containers = [[[NSMutableDictionary alloc] init] autorelease];
metadataReaders = [[NSMutableDictionary alloc] init]; self.metadataReaders = [[[NSMutableDictionary alloc] init] autorelease];
propertiesReadersByExtension = [[NSMutableDictionary alloc] init]; self.propertiesReadersByExtension = [[[NSMutableDictionary alloc] init] autorelease];
propertiesReadersByMimeType = [[NSMutableDictionary alloc] init]; self.propertiesReadersByMimeType = [[[NSMutableDictionary alloc] init] autorelease];
decodersByExtension = [[NSMutableDictionary alloc] init]; self.decodersByExtension = [[[NSMutableDictionary alloc] init] autorelease];
decodersByMimeType = [[NSMutableDictionary alloc] init]; self.decodersByMimeType = [[[NSMutableDictionary alloc] init] autorelease];
[self setup]; [self setup];
} }
@ -90,7 +90,7 @@ static PluginController *sharedPluginController = nil;
- (void)setup - (void)setup
{ {
if (self.configured == NO) { if (self.configured == NO) {
self.configured == YES; self.configured = YES;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bundleDidLoad:) name:NSBundleDidLoadNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bundleDidLoad:) name:NSBundleDidLoadNotification object:nil];
@ -222,15 +222,15 @@ static PluginController *sharedPluginController = nil;
- (void)printPluginInfo - (void)printPluginInfo
{ {
NSLog(@"Sources: %@", sources); NSLog(@"Sources: %@", self.sources);
NSLog(@"Containers: %@", containers); NSLog(@"Containers: %@", self.containers);
NSLog(@"Metadata Readers: %@", metadataReaders); NSLog(@"Metadata Readers: %@", self.metadataReaders);
NSLog(@"Properties Readers By Extension: %@", propertiesReadersByExtension); NSLog(@"Properties Readers By Extension: %@", self.propertiesReadersByExtension);
NSLog(@"Properties Readers By Mime Type: %@", propertiesReadersByMimeType); NSLog(@"Properties Readers By Mime Type: %@", self.propertiesReadersByMimeType);
NSLog(@"Decoders by Extension: %@", decodersByExtension); NSLog(@"Decoders by Extension: %@", self.decodersByExtension);
NSLog(@"Decoders by Mime Type: %@", decodersByMimeType); NSLog(@"Decoders by Mime Type: %@", self.decodersByMimeType);
} }
- (id<CogSource>) audioSourceForURL:(NSURL *)url - (id<CogSource>) audioSourceForURL:(NSURL *)url