Displaying 1 result from an estimated 1 matches for "flac__metadata_chain_write".
2010 Mar 08
0
Difficulties in add cover art to FLAC file
...cture: %s", violation );
if(!FLAC__metadata_iterator_insert_block_after(iterator, picture))
{
printf(L" ERROR: adding new PICTURE block to metadata");
FLAC__metadata_object_delete(picture);
}
FLAC__metadata_iterator_delete(iterator);
FLAC__metadata_chain_sort_padding(chain);
if(!FLAC__metadata_chain_write(chain, true, false ))
{
const FLAC__Metadata_ChainStatus status =
FLAC__metadata_chain_status(chain);
printf( "Fail to write: %d", status );
}
FLAC__metadata_chain_delete(chain);
The above code will add a NULL cover art into the flac file, it works.
However, after I add the following...