[vlc-commits] upnp: change server item type to directory

Thomas Guillem git at videolan.org
Thu Apr 14 11:15:54 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 13 19:39:13 2016 +0200| [181b3b1132343a1d643357608aefa67fb9ecbe57] | committer: Thomas Guillem

upnp: change server item type to directory

An item becomes a node once it's opened by the playlist.

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

 modules/services_discovery/upnp.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index f281539..94e52d8 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -321,14 +321,14 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
     if ( desc->isSatIp )
     {
         p_input_item = input_item_NewWithTypeExt( desc->location.c_str(), desc->friendlyName.c_str(), 0,
-                                                  NULL, 0, -1, ITEM_TYPE_NODE, 1);
+                                                  NULL, 0, -1, ITEM_TYPE_DIRECTORY, 1);
     } else {
         char* psz_mrl;
         if( asprintf(&psz_mrl, "upnp://%s?ObjectID=0", desc->location.c_str() ) < 0 )
             return false;
 
         p_input_item = input_item_NewWithTypeExt( psz_mrl, desc->friendlyName.c_str(), 0,
-                                                  NULL, 0, -1, ITEM_TYPE_NODE, 1);
+                                                  NULL, 0, -1, ITEM_TYPE_DIRECTORY, 1);
         free( psz_mrl );
     }
     if ( !p_input_item )



More information about the vlc-commits mailing list