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:
parent
0845c2193b
commit
ec11819012
@ -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 ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user