rendertask: return errors and respond appropriately

Fixes #1348
This commit is contained in:
itsmattkc
2022-01-10 10:15:45 -08:00
parent e0c8a2e569
commit b40a61c6ed
6 changed files with 75 additions and 34 deletions
+6 -2
View File
@@ -85,7 +85,7 @@ bool PreCacheTask::Run()
return true;
}
void PreCacheTask::FrameDownloaded(FramePtr frame, const QByteArray &hash, const QVector<rational> &times)
bool PreCacheTask::FrameDownloaded(FramePtr frame, const QByteArray &hash, const QVector<rational> &times)
{
// Do nothing. Pre-cache essentially just creates more frames in the cache, it doesn't need to do
// anything else.
@@ -93,14 +93,18 @@ void PreCacheTask::FrameDownloaded(FramePtr frame, const QByteArray &hash, const
Q_UNUSED(frame)
Q_UNUSED(hash)
Q_UNUSED(times)
return true;
}
void PreCacheTask::AudioDownloaded(const TimeRange &range, SampleBufferPtr samples)
bool PreCacheTask::AudioDownloaded(const TimeRange &range, SampleBufferPtr samples)
{
// Pre-cache doesn't cache any audio
Q_UNUSED(range)
Q_UNUSED(samples)
return true;
}
}