exportdialog: added elapsed/remaining time indicator

This commit is contained in:
itsmattkc
2020-04-08 01:48:03 +10:00
parent 7bc7b6098b
commit f5a9dee139
4 changed files with 88 additions and 5 deletions
+1 -2
View File
@@ -193,8 +193,7 @@ void Exporter::EncodeFrame()
waiting_for_frame_ += video_params_.time_base();
// Calculate progress
int progress = qRound(100.0 * (waiting_for_frame_.toDouble() / viewer_node_->Length().toDouble()));
emit ProgressChanged(progress);
emit ProgressChanged(waiting_for_frame_.toDouble() / viewer_node_->Length().toDouble());
}
if (waiting_for_frame_ >= viewer_node_->Length()) {