[vlmc-devel] Library: Fix not finding media files

Yikai Lu git at videolan.org
Sun Mar 5 05:59:35 CET 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Mar  4 22:59:21 2017 -0600| [c1cf08e2c9d933a3f044d889094ddaa4da264875] | committer: Yikai Lu

Library: Fix not finding media files

> https://code.videolan.org/videolan/vlmc/commit/c1cf08e2c9d933a3f044d889094ddaa4da264875
---

 src/Library/Library.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index 74c7c08..f27e56b 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -189,7 +189,8 @@ Library::mlDirsChanged(const QVariant& value)
     const auto list = value.toStringList();
     Q_ASSERT( list.empty() == false );
     for ( const auto f : list )
-        m_ml->discover( f.toStdString() );
+        // To use FsDiscoverer
+        m_ml->discover( std::string( "file://" ) + f.toStdString() );
 }
 
 void



More information about the Vlmc-devel mailing list