cache: fixed double write corruption

This commit is contained in:
itsmattkc
2022-05-16 16:10:54 -07:00
parent a7c466bd6b
commit 9ba3f24f3b
4 changed files with 40 additions and 36 deletions
+2 -1
View File
@@ -157,7 +157,8 @@ RenderTicketPtr RenderManager::SaveFrameToCache(FrameHashCache *cache, FramePtr
ticket->setProperty("cache", cache->GetCacheDirectory());
ticket->setProperty("frame", QVariant::fromValue(frame));
ticket->setProperty("time", QVariant::fromValue(Timecode::time_to_timestamp(time, cache->GetTimebase(), Timecode::kFloor)));
ticket->setProperty("time", QVariant::fromValue(time));
ticket->setProperty("timebase", QVariant::fromValue(cache->GetTimebase()));
ticket->setProperty("uuid", QVariant::fromValue(cache->GetUuid()));
ticket->setProperty("type", kTypeVideoDownload);