Przeglądaj źródła

macosx/framework/VLCMedia: Rely on artFetched and not on the metaDictionary value.

Pierre d'Herbemont 17 lat temu
rodzic
commit
094189db0d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Sources/VLCMedia.m

+ 1 - 1
Sources/VLCMedia.m

@@ -547,7 +547,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
 
 
 - (id)valueForKeyPath:(NSString *)keyPath
 - (id)valueForKeyPath:(NSString *)keyPath
 {
 {
-    if( ![metaDictionary objectForKey:@"artwork"] && [keyPath isEqualToString:@"metaDictionary.artwork"])
+    if( !artFetched && [keyPath isEqualToString:@"metaDictionary.artwork"])
     {
     {
         artFetched = YES;
         artFetched = YES;
         /* Force the retrieval of the artwork now that someone asked for it */
         /* Force the retrieval of the artwork now that someone asked for it */