* Only scan for embedded images if libFLAC is new enough.
This commit is contained in:
parent
c011c4a087
commit
abf80e59d7
@ -76,6 +76,7 @@ _get_flctags(char *filename, struct song_metadata *psong)
|
|||||||
block->data.vorbis_comment.comments[i].length);
|
block->data.vorbis_comment.comments[i].length);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if FLAC_API_VERSION_CURRENT >= 10
|
||||||
case FLAC__METADATA_TYPE_PICTURE:
|
case FLAC__METADATA_TYPE_PICTURE:
|
||||||
psong->image_size = block->data.picture.data_length;
|
psong->image_size = block->data.picture.data_length;
|
||||||
if((psong->image = malloc(psong->image_size)))
|
if((psong->image = malloc(psong->image_size)))
|
||||||
@ -83,6 +84,7 @@ _get_flctags(char *filename, struct song_metadata *psong)
|
|||||||
else
|
else
|
||||||
DPRINTF(E_ERROR, L_SCANNER, "Out of memory [%s]\n", filename);
|
DPRINTF(E_ERROR, L_SCANNER, "Out of memory [%s]\n", filename);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user