Commit 62d356db authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Thumbnail Cache: fix exception as NSCache doesn't like to store inexistant...

Thumbnail Cache: fix exception as NSCache doesn't like to store inexistant objects which can occur if libvlc didn't finish providing thumbnails yet
parent 38fc0b63
......@@ -39,7 +39,8 @@ static NSCache *_thumbnailCache;
return displayedImage;
displayedImage = mediaFile.computedThumbnail;
[_thumbnailCache setObject:displayedImage forKey:objID];
if (displayedImage)
[_thumbnailCache setObject:displayedImage forKey:objID];
return displayedImage;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment