mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Video avatar fixes
This commit is contained in:
@@ -157,6 +157,8 @@
|
||||
|
||||
_thumbnailsDisposable = [[SMetaDisposable alloc] init];
|
||||
|
||||
_chaseTime = kCMTimeInvalid;
|
||||
|
||||
self.customAppearanceMethodsForwarding = true;
|
||||
}
|
||||
return self;
|
||||
@@ -596,10 +598,12 @@
|
||||
CMTime currentChasingTime = _chaseTime;
|
||||
|
||||
[_player.currentItem seekToTime:currentChasingTime toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:^(BOOL finished) {
|
||||
if (CMTIME_COMPARE_INLINE(currentChasingTime, ==, _chaseTime))
|
||||
if (CMTIME_COMPARE_INLINE(currentChasingTime, ==, _chaseTime)) {
|
||||
_chasingTime = false;
|
||||
else
|
||||
_chaseTime = kCMTimeInvalid;
|
||||
} else {
|
||||
[self chaseTime];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user