Displaying 1 result from an estimated 1 matches for "flac__metadata_chain_delet".
Did you mean:
flac__metadata_chain_delete
2010 Mar 08
0
Difficulties in add cover art to FLAC file
..._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_legal,
I got a "fail to write: status 0" message.
picture->data.picture.typ...