Commit 4cb79555 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Do not block while the metadata are computed.

parent eb69e928
......@@ -74,7 +74,6 @@ void ImportModel::metaDataComputed( Media* media )
if ( media->getMetadata() == Media::ParsedWithoutSnapshot )
{
m_medias->insert( media->getUuid(), media );
emit newMediaLoaded( media );
emit updateMediaRequested( media );
}
else
......@@ -125,6 +124,7 @@ void ImportModel::loadMedia( Media* media )
connect( media, SIGNAL( snapshotComputed(Media*) ), this, SLOT( snapshotComputed(Media*) ), Qt::QueuedConnection );
connect( media, SIGNAL( audioSpectrumComputed( Media* ) ), this, SLOT( audioSpectrumComputed(Media*) ) );
MetaDataManager::getInstance()->computeMediaMetadata( media );
emit newMediaLoaded( media );
}
bool ImportModel::mediaAlreadyLoaded( const QFileInfo& fileInfo )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment