From 8a91bc1d09d537386ae7cd175993762a92381d80 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 11 Jan 2022 19:35:59 -0800 Subject: [PATCH] Playlist loader: Allocate larger properties dictionary --- Playlist/PlaylistLoader.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 3de36ea0e..1262ff84f 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -618,7 +618,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc progress += progressstep; [weakLock unlock]; - NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:20]; + NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:32]; NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:weakPe.URL]; if (entryProperties == nil) @@ -700,7 +700,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc { PlaylistEntry *pe = [entries objectAtIndex:idx]; - NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:20]; + NSMutableDictionary *entryInfo = [NSMutableDictionary dictionaryWithCapacity:32]; NSDictionary *entryProperties = [AudioPropertiesReader propertiesForURL:pe.URL]; if (entryProperties == nil)