* Automatically adapt our friendly_name to meet Xbox360 requirements if we detect an Xbox360 client.

This commit is contained in:
Justin Maggard 2009-09-18 07:53:36 +00:00
parent 20f01f4a3d
commit b6788cccb0

View File

@ -720,7 +720,17 @@ ProcessHttpQuery_upnphttp(struct upnphttp * h)
}
if(strcmp(ROOTDESC_PATH, HttpUrl) == 0)
{
sendXMLdesc(h, genRootDesc);
/* If it's a Xbox360, we might need a special friendly_name to be recognized */
if( (h->req_client == EXbox) && !strchr(friendly_name, ':') )
{
strncat(friendly_name, ": 1", FRIENDLYNAME_MAX_LEN-4);
sendXMLdesc(h, genRootDesc);
friendly_name[strlen(friendly_name)-3] = '\0';
}
else
{
sendXMLdesc(h, genRootDesc);
}
}
else if(strcmp(CONTENTDIRECTORY_PATH, HttpUrl) == 0)
{