Explorar o código

使用 sitcker 方式初始时才 重新加载缓存数据

jsonwang %!s(int64=3) %!d(string=hai) anos
pai
achega
e4c0585d68

+ 4 - 1
BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

@@ -408,7 +408,10 @@ public class PQGPUImagePlayerView: UIView {
         movie.completion = { [weak self] in
             guard let strongSelf = self else { return }
             //缓存已经用完,重新初始化缓存
-            strongSelf.configCache()
+            if(strongSelf.filters.count == 0){
+                strongSelf.configCache()
+            }
+            
             DispatchQueue.main.async {
                 strongSelf.status = .stop
                 strongSelf.finishedClosure?()