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

MediaLibrary: Don't ignore metadata service init failures

parent 6c6c5ce4
......@@ -183,7 +183,11 @@ MoviePtr MediaLibrary::createMovie( const std::string& title )
void MediaLibrary::addMetadataService(std::unique_ptr<IMetadataService> service)
{
service->initialize( m_parser.get(), this );
if ( service->initialize( m_parser.get(), this ) == false )
{
std::cout << "Failed to initialize service" << std::endl;
return;
}
m_parser->addService( std::move( service ) );
}
......
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