search for: flac__metadata_chain_status

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

2004 Sep 10
1
metaflac bug
...T block"); - while(FLAC__metadata_iterator_next(iterator)) - ; - if(!FLAC__metadata_iterator_insert_block_after(iterator, block)) { - fprintf(stderr, "%s: ERROR: adding new VORBIS_COMMENT block to metadata, status =\"%s\"\n", filename, FLAC__Metadata_ChainStatusString[FLAC__metadata_chain_status(chain)]); - return false; + if(!found_vc_block) + /* create a new block if necessary */ + if(operation->type == OP__SET_VC_FIELD || operation->type == OP__IMPORT_VC_FROM) { + block = FLAC__metadata_object_new(FLAC__METADATA_TYPE_VORBIS_COMMENT); + if(0 == block) + die("out of...
2010 Mar 08
0
Difficulties in add cover art to FLAC file
...ture)) { 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 code between the call of FLAC__metadata_iterator_next and FLAC__metadata_object_picture_is_...