* 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

@ -181,6 +181,8 @@ check_for_album_file(char * dir)
if( access(file, R_OK) == 0 )
{
imsrc = image_new_from_jpeg(file, 1, NULL, 0);
if( !imsrc )
return NULL;
width = imsrc->width;
height = imsrc->height;
if( width > 160 || height > 160 )