Commit b5974d62 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Add default thumbnail if not computed successfully

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 997183c2
......@@ -158,6 +158,16 @@
displayedImage = computedImage;
}
if (!displayedImage) {
if ([mediaFile isKindOfType:@"audio"]) {
displayedImage = [UIImage imageNamed:@"no-artwork"];
} else if ([mediaFile isKindOfType:@"movie"] ||
[mediaFile isKindOfType:@"tvShowEpisode"] ||
[mediaFile isKindOfType:@"clip"]) {
displayedImage = [UIImage imageNamed:@"tvShow"];
}
}
if (displayedImage)
[_thumbnailCache setObject:displayedImage forKey:objID];
......
Markdown is supported
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