Commit 45a4b36d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ThumbnailerWorker: Store generation failures

parent f6ac7bea
......@@ -103,6 +103,11 @@ void ThumbnailerWorker::run()
m_tasks.pop();
}
bool res = generateThumbnail( media );
if ( res == false )
{
auto m = static_cast<Media*>( media.get() );
m->setThumbnail( "", Thumbnail::Origin::Media, true );
}
m_ml->getCb()->onMediaThumbnailReady( media, res );
}
LOG_INFO( "Exiting thumbnailer thread" );
......
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