Displaying 1 result from an estimated 1 matches for "flac__metadata_iterator_init".
2010 Mar 08
0
Difficulties in add cover art to FLAC file
...__metadata_chain_new();
if(0 == chain)
return;
if(!FLAC__metadata_chain_read(chain, filename))
return;
FLAC__StreamMetadata *picture =
FLAC__metadata_object_new(FLAC__METADATA_TYPE_PICTURE);
FLAC__Metadata_Iterator *iterator = FLAC__metadata_iterator_new();
if(0 == iterator)
return;
FLAC__metadata_iterator_init(iterator, chain);
while(FLAC__metadata_iterator_next(iterator))
;
const char *violation;
if( !FLAC__metadata_object_picture_is_legal(picture, &violation))
printf( "Illegal Picture: %s", violation );
if(!FLAC__metadata_iterator_insert_block_after(iterator, picture))
{
printf(L"...