ソースを参照

Library: fix potential imagery mix-up

Felix Paul Kühne 12 年 前
コミット
0af7be5da7

+ 2 - 3
AspenProject/VLCPlaylistGridView.m

@@ -113,10 +113,9 @@
                 [_thumbnailCacheIndex removeLastObject];
             }
             displayedImage = mediaObject.computedThumbnail;
-            if (displayedImage) {
+            if (displayedImage)
                 [_thumbnailCache setObject:displayedImage forKey:objID];
-                [_thumbnailCacheIndex insertObject:objID atIndex:0];
-            }
+            [_thumbnailCacheIndex insertObject:objID atIndex:0];
         }
         self.thumbnailView.image = displayedImage;
     }

+ 2 - 3
AspenProject/VLCPlaylistTableViewCell.m

@@ -98,10 +98,9 @@
                 [_thumbnailCacheIndex removeLastObject];
             }
             displayedImage = mediaObject.computedThumbnail;
-            if (displayedImage) {
+            if (displayedImage)
                 [_thumbnailCache setObject:displayedImage forKey:objID];
-                [_thumbnailCacheIndex insertObject:objID atIndex:0];
-            }
+            [_thumbnailCacheIndex insertObject:objID atIndex:0];
         }
         self.thumbnailView.image = displayedImage;
     }