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:
1 parent
0845c2193b
commit
ec11819012
1 file changed
+1
-1
+1
-1
@@ -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