* 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

@ -493,6 +493,12 @@ static void add_resized_res(int srcw, int srch, int reqw, int reqh, char *dlna_p
int dsth = reqh;
char str_buf[256];
if( passed_args->flags & FLAG_NO_RESIZE )
{
return;
}
ret = sprintf(str_buf, "<res ");
memcpy(passed_args->resp+passed_args->size, &str_buf, ret+1);
passed_args->size += ret;