Commit ca3f97a5 authored by Chris Clayton's avatar Chris Clayton Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e183a26d
...@@ -348,7 +348,7 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc, ...@@ -348,7 +348,7 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
const char* psz_base_url = p_location; const char* psz_base_url = p_location;
/* Try to extract baseURL */ /* 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 ) if ( p_url_list )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment