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:
@ -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 ");
|
||||
|
Reference in New Issue
Block a user