export: calculate total length from individual frames rather than all frames

This commit is contained in:
itsmattkc
2020-11-30 07:22:48 +11:00
parent 9ee523b145
commit f48c8b552b
+3 -3
View File
@@ -78,9 +78,6 @@ bool RenderTask::Render(ColorManager* manager,
QVector<rational> times = viewer()->video_frame_cache()->GetFrameListFromTimeRange(video_range);
QVector<QByteArray> hashes(times.size());
// Add to "total progress"
total_length += video_frame_sz * times.size();
// Generate hashes
for (int i=0; i<times.size(); i++) {
if (IsCancelled()) {
@@ -115,6 +112,9 @@ bool RenderTask::Render(ColorManager* manager,
cache));
}
}
// Add to "total progress"
total_length += video_frame_sz * time_map.size();
}
finished_watcher_mutex_.lock();