[vlc-devel] [PATCH 1/6] upnp: expose device type as setting

Felix Paul Kühne fkuehne at videolan.org
Wed Jul 20 17:25:17 CEST 2016


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

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 9f4c2f9..4bad2ca 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -311,6 +311,8 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
         p_input_item = input_item_NewDirectory( desc->location.c_str(),
                                                 desc->friendlyName.c_str(),
                                                 ITEM_NET );
+
+        input_item_SetSetting( p_input_item, SATIP_SERVER_DEVICE_TYPE );
     } else {
         char* psz_mrl;
         // We might already have some options specified in the location.
@@ -321,6 +323,8 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
         p_input_item = input_item_NewDirectory( psz_mrl,
                                                 desc->friendlyName.c_str(),
                                                 ITEM_NET );
+
+        input_item_SetSetting( p_input_item, MEDIA_SERVER_DEVICE_TYPE );
         free( psz_mrl );
     }
     if ( !p_input_item )
-- 
2.9.2



More information about the vlc-devel mailing list