fixed rendertask progress issue

This commit is contained in:
itsmattkc
2022-05-09 19:52:41 -07:00
parent 4bc82ca6df
commit 6f787d1883
2 changed files with 2 additions and 9 deletions
+2
View File
@@ -75,6 +75,8 @@ bool RenderTask::Render(ColorManager* manager,
// Look up hashes
TimeRangeListFrameIterator iterator(video_range, video_params().frame_rate_as_time_base());
total_number_of_frames_ = iterator.size();
total_length += total_number_of_frames_;
// Start a render of a limited amount, and then render one frame for each frame that gets
// finished. This prevents rendered frames from stacking up in memory indefinitely while the
-9
View File
@@ -112,14 +112,6 @@ protected:
return total_number_of_frames_;
}
/**
* @brief Only valid after Render() is called
*/
int64_t GetTotalNumberOfUniqueFrames() const
{
return total_number_of_unique_frames_;
}
private:
void PrepareWatcher(RenderTicketWatcher* watcher, QThread *thread);
@@ -142,7 +134,6 @@ private:
bool native_progress_signalling_;
int64_t total_number_of_frames_;
int64_t total_number_of_unique_frames_;
private slots:
void TicketDone(RenderTicketWatcher *watcher);