Fix nil key or value in AO metadata.

CQTexperiment
vspader 2009-03-01 17:13:54 -08:00
parent 31a55fa219
commit 5d0372d368
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ int ao_get_lib(char *fn, uint8 **buf, uint64 *length)
NSString *key = [[NSString alloc] initWithUTF8String:info.title[i]];
NSString *value = [[NSString alloc] initWithUTF8String:info.info[i]];
if (nil == key || nil == value)
continue;
if ([key hasPrefix:@"Name"]) {
[dict setObject:value forKey:@"title"];
}