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

IMediaLibrary: Allow requestThumbnail to return an error

parent d402b550
......@@ -402,7 +402,7 @@ class IMediaLibrary
* Upon completion (successful or not) IMediaLibraryCb::onMediaThumbnailReady
* will be called.
*/
virtual void requestThumbnail( MediaPtr media ) = 0;
virtual bool requestThumbnail( MediaPtr media ) = 0;
virtual void addParserService( std::shared_ptr<parser::IParserService> service ) = 0;
......
......@@ -1316,9 +1316,10 @@ void MediaLibrary::forceRescan()
}
}
void MediaLibrary::requestThumbnail( MediaPtr media )
bool MediaLibrary::requestThumbnail( MediaPtr media )
{
m_thumbnailer->requestThumbnail( media );
return true;
}
void MediaLibrary::addParserService( std::shared_ptr<parser::IParserService> service )
......
......@@ -166,7 +166,7 @@ class MediaLibrary : public IMediaLibrary, public IDeviceListerCb
virtual void forceRescan() override;
virtual void requestThumbnail( MediaPtr media ) override;
virtual bool requestThumbnail( MediaPtr media ) override;
virtual void addParserService( std::shared_ptr<parser::IParserService> service ) override;
......
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