Commit 6d7885a5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ThumbnailerWorker: Discard duplicated thumbnail requests

parent 45a4b36d
......@@ -102,6 +102,12 @@ void ThumbnailerWorker::run()
media = std::move( m_tasks.front() );
m_tasks.pop();
}
if ( media->isThumbnailGenerated() == true )
{
LOG_INFO( "Skipping thumbnail generation of a media with a thumbnail ", media->fileName() );
m_ml->getCb()->onMediaThumbnailReady( media, media->thumbnail().empty() == false );
continue;
}
bool res = generateThumbnail( media );
if ( res == false )
{
......
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