From b0fd359388c73d1f6f67d5ffd77bee490ab4b192 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 9 Mar 2025 18:30:06 -0700 Subject: [PATCH] Crash Fix: Fix a serious bug in previous commit Fixes commit 9c1c6d7130148c2947a65926ac366c1c8cc0123b, where code was treating a dictionary like an array. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistLoader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 5b5cbbc8e..e3a074326 100644 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -909,7 +909,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path); { __block NSLock *blockLock = [[NSLock alloc] init]; - __block NSMutableArray *blockInputs = [queueThisJob mutableCopy]; + __block NSMutableArray *blockInputs = [[queueThisJob allKeys] mutableCopy]; for(size_t i = 0, j = [blockInputs count]; i < j; ++i) { NSBlockOperation *op = [[NSBlockOperation alloc] init]; [op addExecutionBlock:^{