Add a nil pointer check for metadata read
No idea if this is needed or not.CQTexperiment
parent
69c4cb3c16
commit
d7becdf01a
|
@ -561,7 +561,11 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
if(entryProperties == nil)
|
if(entryProperties == nil)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[entryInfo addEntriesFromDictionary:[AudioMetadataReader metadataForURL:weakPe.URL]];
|
NSDictionary *entryMetadata = [AudioMetadataReader metadataForURL:weakPe.URL];
|
||||||
|
|
||||||
|
if(entryMetadata)
|
||||||
|
[entryInfo addEntriesFromDictionary:entryMetadata];
|
||||||
|
|
||||||
[entryInfo addEntriesFromDictionary:entryProperties];
|
[entryInfo addEntriesFromDictionary:entryProperties];
|
||||||
|
|
||||||
[weakLock lock];
|
[weakLock lock];
|
||||||
|
|
Loading…
Reference in New Issue