search for: flac__metadata_iterator_delete

Displaying 2 results from an estimated 2 matches for "flac__metadata_iterator_delete".

2004 Sep 10
1
metaflac bug
...ENT block to metadata, status =\"%s\"\n", filename, FLAC__Metadata_ChainStatusString[FLAC__metadata_chain_status(chain)]); + return false; + } + /* iterator is left pointing to new block */ + FLAC__ASSERT(FLAC__metadata_iterator_get_block(iterator) == block); + } else { + FLAC__metadata_iterator_delete(iterator); + return ok; } - /* iterator is left pointing to new block */ - FLAC__ASSERT(FLAC__metadata_iterator_get_block(iterator) == block); - } FLAC__ASSERT(0 != block); FLAC__ASSERT(block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
2010 Mar 08
0
Difficulties in add cover art to FLAC file
...FLAC__metadata_object_picture_is_legal(picture, &violation)) printf( "Illegal Picture: %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 a...