Explorar el Código

Library: fix potential imagery mix-up

Felix Paul Kühne hace 12 años
padre
commit
0af7be5da7
Se han modificado 2 ficheros con 4 adiciones y 6 borrados
  1. 2 3
      AspenProject/VLCPlaylistGridView.m
  2. 2 3
      AspenProject/VLCPlaylistTableViewCell.m

+ 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;
     }