cache: merged cachetask and footagecache into one precache task

Since the actual auto-cache now happens elsewhere, this cleans up a lot of
dead code.
This commit is contained in:
itsmattkc
2020-08-05 23:45:18 +10:00
parent 07a53d45f0
commit d5dce29b22
15 changed files with 78 additions and 215 deletions
+6 -2
View File
@@ -148,8 +148,10 @@ QFuture<void> ExportTask::DownloadFrame(FramePtr frame, const QByteArray &hash)
return QtConcurrent::run(FrameColorConvert, color_processor_, frame);
}
void ExportTask::FrameDownloaded(const QByteArray &hash, const std::list<rational> &times)
void ExportTask::FrameDownloaded(const QByteArray &hash, const std::list<rational> &times, qint64 job_time)
{
Q_UNUSED(job_time)
FramePtr f = rendered_frame_.value(hash);
foreach (const rational& t, times) {
@@ -173,8 +175,10 @@ void ExportTask::FrameDownloaded(const QByteArray &hash, const std::list<rationa
}
}
void ExportTask::AudioDownloaded(const TimeRange &range, SampleBufferPtr samples)
void ExportTask::AudioDownloaded(const TimeRange &range, SampleBufferPtr samples, qint64 job_time)
{
Q_UNUSED(job_time)
TimeRange adjusted_range = range;
if (params_.has_custom_range()) {