fixed rendertask progress issue
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user