precachetask: removed unnecessary hash setting
Pre-cache doesn't need to set a memory cache since its only purpose is to write to the disk cache.
This commit is contained in:
@@ -80,9 +80,12 @@ QFuture<void> PreCacheTask::DownloadFrame(FramePtr frame, const QByteArray &hash
|
||||
|
||||
void PreCacheTask::FrameDownloaded(const QByteArray &hash, const std::list<rational> ×, qint64 job_time)
|
||||
{
|
||||
foreach (const rational& t, times) {
|
||||
viewer()->video_frame_cache()->SetHash(t, hash, job_time, true);
|
||||
}
|
||||
// Do nothing. Pre-cache essentially just creates more frames in the cache, it doesn't need to do
|
||||
// anything else.
|
||||
|
||||
Q_UNUSED(hash)
|
||||
Q_UNUSED(times)
|
||||
Q_UNUSED(job_time)
|
||||
}
|
||||
|
||||
void PreCacheTask::AudioDownloaded(const TimeRange &range, SampleBufferPtr samples, qint64 job_time)
|
||||
|
||||
Reference in New Issue
Block a user