[vlc-commits] UPNP: Fix a tag name in MediaServer xml parsing

Chris Clayton git at videolan.org
Mon Dec 19 02:48:20 CET 2011


vlc | branch: master | Chris Clayton <chris2553 at googlemail.com> | Sat Dec 17 23:00:47 2011 +0000| [ca3f97a5111b897194134f11c78b4824ab87caba] | committer: Jean-Baptiste Kempf

UPNP: Fix a tag name in MediaServer xml parsing

According to http://upnp.org/specs/av/UPnP-av-MediaServer-v1-Device.pdf, the tag name of the element
that provides the base URL for relative URLs is "URLBase". The same is true for a v2 MediaServer.
Make it so in MediaServer:: parseDeviceDescription().

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 9a1f25f..cc61e1d 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -348,7 +348,7 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
     const char* psz_base_url = p_location;
 
     /* Try to extract baseURL */
-    IXML_NodeList* p_url_list = ixmlDocument_getElementsByTagName( p_doc, "baseURL" );
+    IXML_NodeList* p_url_list = ixmlDocument_getElementsByTagName( p_doc, "URLBase" );
     if ( p_url_list )
     {
 



More information about the vlc-commits mailing list