|
@@ -563,16 +563,12 @@ public class PQGPUImagePlayerView: UIView {
|
|
|
(currTime >= (filter.stickerInfo?.timelineIn ?? 0.0) && currTime <= (filter.stickerInfo?.timelineOut ?? 0.0))
|
|
|
|
|
|
})
|
|
|
-
|
|
|
- guard let showIndex = showIndex else {
|
|
|
+ if(showIndex == nil){
|
|
|
FilterLog(message: "缓存没有查找到?出现数据错误!!!!")
|
|
|
-// for (index,bsFilter )in cacheFilters.enumerated() {
|
|
|
-// BFLog(1, message: "22222缓存操作 没要查找到要查找的显示是为:\(currTime) 缓存数据timeline in :\(bsFilter.stickerInfo?.timelineIn ?? 0.0)) timelineOut:\(bsFilter.stickerInfo?.timelineOut ?? 0.0) 缓存数 \(cacheFilters.count) index: \(index)")
|
|
|
-// }
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- let showFilter: PQBaseFilter = cacheFilters[showIndex]
|
|
|
+
|
|
|
+ let showFilter: PQBaseFilter = cacheFilters[showIndex ?? 0]
|
|
|
|
|
|
FilterLog(message: "缓存操作 查找到命中的显示是为:\(currTime) 缓存数据timeline in :\(showFilter.stickerInfo?.timelineIn ?? 0.0)) timelineOut:\(showFilter.stickerInfo?.timelineOut ?? 0.0) in:\(showFilter.stickerInfo?.model_in ?? 0.0) out:\(showFilter.stickerInfo?.out ?? 0.0) 缓存数 \(cacheFilters.count) index: \(String(describing: showIndex))")
|
|
|
|