[vlc-commits] qt: mark file paths as indexable in MLNetworkModel

Pierre Lamot git at videolan.org
Fri Jan 10 15:06:07 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Nov 26 10:33:03 2019 +0100| [e5f76f50e033a743b19241ad9139c01b5e0f815d] | committer: Jean-Baptiste Kempf

qt: mark file paths as indexable in MLNetworkModel

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/network/networkmediamodel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/network/networkmediamodel.cpp b/modules/gui/qt/network/networkmediamodel.cpp
index cece2d531c..2787215b64 100644
--- a/modules/gui/qt/network/networkmediamodel.cpp
+++ b/modules/gui/qt/network/networkmediamodel.cpp
@@ -378,5 +378,5 @@ void NetworkMediaModel::refreshMediaList( MediaSourcePtr mediaSource,
 
 bool NetworkMediaModel::canBeIndexed(const QUrl& url , ItemType itemType )
 {
-    return static_cast<input_item_type_e>(itemType) != ITEM_TYPE_FILE && (url.scheme() == "smb" || url.scheme() == "ftp");
+    return static_cast<input_item_type_e>(itemType) != ITEM_TYPE_FILE && (url.scheme() == "smb" || url.scheme() == "ftp" || url.scheme() == "file");
 }



More information about the vlc-commits mailing list