decoder: signal indexing progress

Better UI interactions, actually shows the progress of the index function in
the task manager now.
This commit is contained in:
itsmattkc
2020-02-19 12:19:42 +11:00
parent 03bdf01357
commit 53551246da
4 changed files with 21 additions and 0 deletions
+7
View File
@@ -180,3 +180,10 @@ void Decoder::Conform(const AudioRenderingParams &params, const QAtomicInt* canc
void Decoder::Index(const QAtomicInt *cancelled)
{
}
void Decoder::SignalIndexProgress(const int64_t &ts)
{
if (stream()->duration() != AV_NOPTS_VALUE && stream()->duration() != 0) {
emit IndexProgress(qRound(100.0 * static_cast<double>(ts) / static_cast<double>(stream()->duration())));
}
}