Fixed an issue where the preview image could appear twice

This commit is contained in:
Gareth Reese
2016-03-04 16:50:39 +00:00
parent 195c651811
commit fb1c5e8ee6

View File

@@ -178,7 +178,7 @@
// Unfortunately it's not possible to generate a preview image for an HTTP live stream asset, so we'll give up here
// http://stackoverflow.com/questions/32112205/m3u8-file-avassetimagegenerator-error
if (image) {
if (image && _placeholderImageNode.image == nil) {
UIImage *theImage = [UIImage imageWithCGImage:image];
_placeholderImageNode = [[ASImageNode alloc] init];