[vlc-devel] [PATCH] upnp: mark directories as ITEM_TYPE_DIRECTORY

Thomas Guillem thomas at gllm.fr
Thu Mar 19 18:10:00 CET 2015


---
 modules/services_discovery/upnp.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index b427cf7..13aff37 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -550,7 +550,7 @@ void MediaServer::addItem(const char *objectID, const char *title )
     vlc_UrlClean( &url );
 
     input_item_t* p_item = input_item_NewWithType( psz_url, title, 0, NULL,
-                                                   0, -1, ITEM_TYPE_NODE );
+                                                   0, -1, ITEM_TYPE_DIRECTORY );
     free( psz_url);
     if ( !p_item )
         return;
-- 
2.1.3




More information about the vlc-devel mailing list