From f8743ad094d35ffbf0a39c27d87ca35f68d2340a Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 16 Feb 2008 10:48:24 +0000 Subject: [PATCH] macosx/framework/VLCMedia: Rely on artFetched and not on the metaDictionary value. --- projects/macosx/framework/Sources/VLCMedia.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/macosx/framework/Sources/VLCMedia.m b/projects/macosx/framework/Sources/VLCMedia.m index 5e96e23d42..70b247327f 100644 --- a/projects/macosx/framework/Sources/VLCMedia.m +++ b/projects/macosx/framework/Sources/VLCMedia.m @@ -547,7 +547,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) - (id)valueForKeyPath:(NSString *)keyPath { - if( ![metaDictionary objectForKey:@"artwork"] && [keyPath isEqualToString:@"metaDictionary.artwork"]) + if( !artFetched && [keyPath isEqualToString:@"metaDictionary.artwork"]) { artFetched = YES; /* Force the retrieval of the artwork now that someone asked for it */ -- 2.39.2