* Fix bug with bad album art.

This commit is contained in:
Justin Maggard
2009-03-27 22:22:23 +00:00
parent 9854e35533
commit 0a415861e7
4 changed files with 19 additions and 0 deletions

View File

@@ -414,6 +414,12 @@ GetImageMetadata(const char * path, char * name)
fclose(infile);
}
if( !width || !height )
{
if( m.mime )
free(m.mime);
return 0;
}
if( width <= 640 && height <= 480 )
asprintf(&m.dlna_pn, "JPEG_SM;DLNA.ORG_OP=01;DLNA.ORG_CI=0");
else if( width <= 1024 && height <= 768 )