]> git.sesse.net Git - vlc/commitdiff
macosx/framework/VLCMedia: Rely on artFetched and not on the metaDictionary value.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 16 Feb 2008 10:48:24 +0000 (10:48 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 16 Feb 2008 10:48:24 +0000 (10:48 +0000)
projects/macosx/framework/Sources/VLCMedia.m

index 5e96e23d422bde2051c82b504244e07fe600e8db..70b247327f381aa6ddde20e1d006634de89239a3 100644 (file)
@@ -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 */