[vlc-commits] medialib: fs: Return the full directory content

Hugo Beauzée-Luyssen git at videolan.org
Mon Aug 24 13:27:50 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jul  1 15:28:14 2020 +0200| [4b0131c2a1008b3b1f27e50b72822261907ca6f3] | committer: Hugo Beauzée-Luyssen

medialib: fs: Return the full directory content

Don't ignore hidden files (since we are interested in .nomedia files)
and let the media lib chose which files it will analyze

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b0131c2a1008b3b1f27e50b72822261907ca6f3
---

 modules/misc/medialibrary/fs/directory.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/misc/medialibrary/fs/directory.cpp b/modules/misc/medialibrary/fs/directory.cpp
index 512b9489b9..50ef287217 100644
--- a/modules/misc/medialibrary/fs/directory.cpp
+++ b/modules/misc/medialibrary/fs/directory.cpp
@@ -186,6 +186,8 @@ SDDirectory::read() const
 
     std::vector<InputItemPtr> children;
 
+    input_item_AddOption( media.get(), "show-hiddenfiles", VLC_INPUT_OPTION_TRUSTED );
+    input_item_AddOption( media.get(), "ignore-filetypes=''", VLC_INPUT_OPTION_TRUSTED );
     auto status = request_metadata_sync( m_fs.libvlc(), media.get(), &children);
 
     if ( status == false )



More information about the vlc-commits mailing list