* Add a no-resize flag, which tells us to to advertise downscaled images. Useful for clients like Samsung TVs, which can use large images well, but will use downscaled small images when given a choice.

This commit is contained in:
Justin Maggard
2009-11-10 00:00:09 +00:00
parent 4073837a34
commit c4170af521
4 changed files with 10 additions and 2 deletions

View File

@ -251,6 +251,7 @@ intervening space) by either an integer or the keyword "infinite". */
{
h->req_client = ESamsungTV;
h->reqflags |= FLAG_DLNA;
h->reqflags |= FLAG_NO_RESIZE;
//h->reqflags |= FLAG_MIME_AVI_DIVX;
}
else if(strstr(p, "bridgeCo-DMP/3"))
@ -1492,7 +1493,7 @@ SendResp_resizedimg(struct upnphttp * h, char * object)
"Connection: close\r\n"
"Date: %s\r\n"
"EXT:\r\n"
"contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_%s\r\n"
"contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_%s;DLNA.ORG_CI=1\r\n"
"Server: " MINIDLNA_SERVER_STRING "\r\n",
size, date, dlna_pn);