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
+4 -4
View File
@@ -49,13 +49,13 @@ protected:
VideoParams::Format force_format = VideoParams::kFormatInvalid,
ColorProcessorPtr force_color_output = nullptr);
virtual void DownloadFrame(QThread* thread, FramePtr frame, const QByteArray &hash);
virtual bool DownloadFrame(QThread* thread, FramePtr frame, const QByteArray &hash);
virtual void FrameDownloaded(FramePtr frame, const QByteArray& hash, const QVector<rational>& times) = 0;
virtual bool FrameDownloaded(FramePtr frame, const QByteArray& hash, const QVector<rational>& times) = 0;
virtual void AudioDownloaded(const TimeRange& range, SampleBufferPtr samples) = 0;
virtual bool AudioDownloaded(const TimeRange& range, SampleBufferPtr samples) = 0;
virtual void EncodeSubtitle(const SubtitleBlock *subtitle);
virtual bool EncodeSubtitle(const SubtitleBlock *subtitle);
ViewerOutput* viewer() const
{