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

MediaLibrary: Don't consider lack of thumbnailer an error

Since the thumbnailer will likely be implemented out of the medialibrary
for the VLC desktop case
parent 0446e3ea
......@@ -362,8 +362,7 @@ bool MediaLibrary::start()
startDiscoverer();
if ( startParser() == false )
return false;
if ( startThumbnailer() == false )
return false;
startThumbnailer();
return true;
}
......@@ -784,13 +783,10 @@ void MediaLibrary::startDeletionNotifier()
m_modificationNotifier->start();
}
bool MediaLibrary::startThumbnailer()
void MediaLibrary::startThumbnailer()
{
#ifdef HAVE_LIBVLC
m_thumbnailer = std::unique_ptr<VLCThumbnailer>( new VLCThumbnailer( this ) );
return true;
#else
return false;
#endif
}
......
......@@ -181,7 +181,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb
virtual bool startParser();
virtual void startDiscoverer();
virtual void startDeletionNotifier();
virtual bool startThumbnailer();
virtual void startThumbnailer();
virtual void populateFsFactories();
private:
......
......@@ -191,9 +191,8 @@ sqlite::Connection* MediaLibraryTester::getDbConn()
return m_dbConnection.get();
}
bool MediaLibraryTester::startThumbnailer()
void MediaLibraryTester::startThumbnailer()
{
return true;
}
void MediaLibraryTester::populateFsFactories()
......
......@@ -72,7 +72,7 @@ public:
std::shared_ptr<fs::IDirectory> parentFolderFs,
std::pair<std::shared_ptr<Playlist>, unsigned int> parentPlaylist ) override;
sqlite::Connection* getDbConn();
virtual bool startThumbnailer();
virtual void startThumbnailer();
virtual void populateFsFactories();
private:
......
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