upnp: expose device type as setting
authorFelix Paul Kühne <fkuehne@videolan.org>
Wed, 20 Jul 2016 15:25:17 +0000 (17:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Sep 2016 13:32:41 +0000 (15:32 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/services_discovery/upnp.cpp

index b465932..85a16b8 100644 (file)
@@ -309,6 +309,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.
@@ -319,6 +321,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 )