Hack the first frame to ensure it always displayed in first screen refresh
This commit is contained in:
parent
b5db7fac68
commit
717461459f
|
@ -152,6 +152,8 @@
|
|||
UIImage *posterFrame = [[UIImage alloc] initWithCGImage:image.CGImage scale:image.scale orientation:image.imageOrientation];
|
||||
#endif
|
||||
if (posterFrame) {
|
||||
// HACK: The first frame should not check duration and immediately display
|
||||
self.needsDisplayWhenImageBecomesAvailable = YES;
|
||||
SD_LOCK(self->_lock);
|
||||
self.frameBuffer[@(self.currentFrameIndex)] = posterFrame;
|
||||
SD_UNLOCK(self->_lock);
|
||||
|
|
Loading…
Reference in New Issue