Fix test case again because of SDDisplayLink behavior, do not use the isRunning check
This commit is contained in:
parent
6d4b241c39
commit
6a3f97551c
|
@ -165,6 +165,7 @@
|
||||||
self.currentLoopCount = 0;
|
self.currentLoopCount = 0;
|
||||||
self.currentTime = 0;
|
self.currentTime = 0;
|
||||||
self.bufferMiss = NO;
|
self.bufferMiss = NO;
|
||||||
|
[self handleFrameChange];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)clearFrameBuffer {
|
- (void)clearFrameBuffer {
|
||||||
|
@ -175,9 +176,6 @@
|
||||||
|
|
||||||
#pragma mark - Animation Control
|
#pragma mark - Animation Control
|
||||||
- (void)startPlaying {
|
- (void)startPlaying {
|
||||||
if (self.isPlaying) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
[self.displayLink start];
|
[self.displayLink start];
|
||||||
// Calculate max buffer size
|
// Calculate max buffer size
|
||||||
[self calculateMaxBufferCount];
|
[self calculateMaxBufferCount];
|
||||||
|
@ -209,6 +207,7 @@
|
||||||
}
|
}
|
||||||
self.currentFrameIndex = index;
|
self.currentFrameIndex = index;
|
||||||
self.currentLoopCount = loopCount;
|
self.currentLoopCount = loopCount;
|
||||||
|
[self handleFrameChange];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Core Render
|
#pragma mark - Core Render
|
||||||
|
|
Loading…
Reference in New Issue