upnpsoap: Use scaled thumbnails when rotation is needed

Embedded thumbnails may have an undesirable orientation, so
we should do our own scaling with inline rotation if the
thumbnail image needs to be rotated.
This commit is contained in:
Justin Maggard
2014-12-11 17:03:35 -08:00
parent 7fe24ae1bc
commit 3c4c35b49c
2 changed files with 12 additions and 7 deletions

View File

@ -1646,6 +1646,8 @@ SendResp_resizedimg(struct upnphttp * h, char * object)
}
DPRINTF(E_INFO, L_HTTP, "Serving resized image for ObjectId: %lld [%s]\n", id, file_path);
if( rotate )
DPRINTF(E_DEBUG, L_HTTP, "Rotating image %d degrees\n", rotate);
switch( rotate )
{
case 90: