upnpsoap: Don't honor the NO_RESIZE flag for thumbnails

Some images don't include an embedded thumbnail, and others
have the thumbnail in the wrong aspect ratio.  In these
cases we resize ourselves, which we should allow to occur
regardless of the NO_RESIZE flag.
This commit is contained in:
Justin Maggard 2015-04-09 16:57:08 -07:00
parent 0845c2193b
commit ec11819012

View File

@ -620,7 +620,7 @@ add_resized_res(int srcw, int srch, int reqw, int reqh, char *dlna_pn,
int dstw = reqw;
int dsth = reqh;
if( args->flags & FLAG_NO_RESIZE )
if( (args->flags & FLAG_NO_RESIZE) && reqw > 160 && reqh > 160 )
return;
strcatf(args->str, "<res ");