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

MediaLibrary: Allow startThumbnailer to return an error

parent 9827bbb8
......@@ -329,7 +329,8 @@ bool MediaLibrary::start()
startDiscoverer();
if ( startParser() == false )
return false;
startThumbnailer();
if ( startThumbnailer() == false )
return false;
return true;
}
......@@ -746,9 +747,10 @@ void MediaLibrary::startDeletionNotifier()
m_modificationNotifier->start();
}
void MediaLibrary::startThumbnailer()
bool MediaLibrary::startThumbnailer()
{
m_thumbnailer = std::unique_ptr<VLCThumbnailer>( new VLCThumbnailer( this ) );
return true;
}
void MediaLibrary::addLocalFsFactory()
......
......@@ -181,7 +181,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb
virtual bool startParser();
virtual void startDiscoverer();
virtual void startDeletionNotifier();
virtual void startThumbnailer();
virtual bool startThumbnailer();
private:
bool recreateDatabase( const std::string& dbPath );
......
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