Parcourir la source

Library: fix potential imagery mix-up

Felix Paul Kühne il y a 12 ans
Parent
commit
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;
     }