Commit 2cf6ab57 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

VLCThumbnailer: Don't compute a snapshot if the file already has one

parent 307bb3ba
......@@ -66,6 +66,12 @@ void VLCThumbnailer::run(std::shared_ptr<Media> file, void *data )
m_cb->done( file, Status::Success, data );
return;
}
else if ( file->snapshot().empty() == false )
{
LOG_INFO(file->snapshot(), " already has a snapshot" );
m_cb->done( file, Status::Success, data );
return;
}
VLC::Media media( m_instance, file->mrl(), VLC::Media::FromPath );
media.addOption( ":no-audio" );
......
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