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

MediaLibrary: Remove unaccurate comment

parent 394a885e
......@@ -72,9 +72,9 @@ MediaLibrary::workspaceChanged( const QVariant& workspace )
{
auto w = workspace.toString().toStdString();
Q_ASSERT( w.empty() == false );
// Initializing the medialibrary doesn't start new folders discovery.
// This will happen after the first call to IMediaLibrary::discover()
m_ml->initialize( w + "/ml.db", w + "/thumbnails/", this );
//FIXME: Race condition, this could trigger onMediaAdded before m_videoModel has been created.
//However, we need the model to be created AFTER the ML gets initialized
m_videoModel = new MediaLibraryModel( *m_ml, medialibrary::IMedia::Type::VideoType, this );
m_audioModel = new MediaLibraryModel( *m_ml, medialibrary::IMedia::Type::AudioType, this );
m_initialized = true;
......
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