[vlmc-devel] MediaLibrary: Remove unaccurate comment
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jul 8 22:56:48 CEST 2016
vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul 8 16:45:08 2016 +0200| [e251e3ff8f0fd0bb11b79ae6606c26e0eb725033] | committer: Hugo Beauzée-Luyssen
MediaLibrary: Remove unaccurate comment
> https://code.videolan.org/videolan/vlmc/commit/e251e3ff8f0fd0bb11b79ae6606c26e0eb725033
---
src/Library/MediaLibrary.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Library/MediaLibrary.cpp b/src/Library/MediaLibrary.cpp
index 43f313e..ce8a686 100644
--- a/src/Library/MediaLibrary.cpp
+++ b/src/Library/MediaLibrary.cpp
@@ -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;
More information about the Vlmc-devel
mailing list