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:
@@ -180,3 +180,10 @@ void Decoder::Conform(const AudioRenderingParams ¶ms, 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())));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user