[vlc-devel] Patch: fix  a tag name in MediaServer xml parsing
    Chris Clayton 
    chris2553 at googlemail.com
       
    Sun Dec 18 00:00:47 CET 2011
    
    
  
Hi,
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(). The patch is against the 20111216 snapshot.
Chris
--- vlc-1.3.0-git/modules/services_discovery/upnp.cpp~  2011-12-16 09:32:04.000000000 +0000
+++ vlc-1.3.0-git/modules/services_discovery/upnp.cpp   2011-12-16 09:34:14.000000000 +0000
@@ -348,7 +348,7 @@ void MediaServer::parseDeviceDescription
     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 )
     {
-- 
The more I see, the more I know. The more I know, the less I understand. Changing Man - Paul Weller
    
    
More information about the vlc-devel
mailing list