mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Video Stickers Fixes
This commit is contained in:
parent
83f6640a64
commit
feb5a0db49
1 changed files with 3 additions and 2 deletions
|
|
@ -38,7 +38,8 @@ private final class VideoStickerFrameSourceCache {
|
|||
self.width = width
|
||||
self.height = height
|
||||
|
||||
let path = "\(pathPrefix)_\(width)x\(height).vstickerframecache"
|
||||
let version: Int = 0
|
||||
let path = "\(pathPrefix)_\(width)x\(height)-v\(version).vstickerframecache"
|
||||
var file = ManagedFile(queue: queue, path: path, mode: .readwrite)
|
||||
if let file = file {
|
||||
self.file = file
|
||||
|
|
@ -330,7 +331,7 @@ final class VideoStickerDirectFrameSource: AnimatedStickerFrameSource {
|
|||
let frameAndLoop = self.source.readFrame(maxPts: nil)
|
||||
if frameAndLoop.0 == nil {
|
||||
if frameAndLoop.3 && self.frameCount == 0 {
|
||||
self.frameCount = frameIndex + 1
|
||||
self.frameCount = frameIndex
|
||||
self.cache?.storeFrameCount(self.frameCount)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue