* Add Popcorn Hour support for using the wrong MIME type for FLAC.

* Fix a couple crash bugs with invalid UPnP-A/V SOAP requests.
* Fix WAV file extension support.
This commit is contained in:
Justin Maggard
2009-07-28 23:17:31 +00:00
parent 6fe702f332
commit 780ae7ad8b
5 changed files with 47 additions and 22 deletions

View File

@ -256,6 +256,11 @@ intervening space) by either an integer or the keyword "infinite". */
{
h->req_client = EFreeBox;
}
else if(strncmp(p, "SMP8634", 7)==0)
{
h->req_client = EPopcornHour;
h->reqflags |= FLAG_MIME_FLAC_FLAC;
}
}
else if(strncasecmp(line, "X-AV-Client-Info", 16)==0)
{
@ -338,6 +343,7 @@ next_header:
h->req_contentoff++;
}
h->req_contentoff += 2;
h->req_contentlen = h->req_buflen - h->req_contentoff;
}
else
{
@ -817,6 +823,7 @@ Process_upnphttp(struct upnphttp * h)
if(endheaders)
{
h->req_contentoff = endheaders - h->req_buf + 4;
h->req_contentlen = h->req_buflen - h->req_contentoff;
ProcessHttpQuery_upnphttp(h);
}
}