[vlc-commits] upnp: expose device type as setting
Felix Paul Kühne
git at videolan.org
Fri Sep 16 15:38:35 CEST 2016
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jul 20 17:25:17 2016 +0200| [0bc662ad7b518079b2010407367648967c02f4ee] | committer: Jean-Baptiste Kempf
upnp: expose device type as setting
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0bc662ad7b518079b2010407367648967c02f4ee
---
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 b465932..85a16b8 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -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 )
More information about the vlc-commits
mailing list