pass vorbis comment entries by value

This commit is contained in:
Josh Coalson
2002-05-31 06:25:36 +00:00
parent bda92f2f71
commit 8ae7bdbfd2

View File

@@ -1605,7 +1605,7 @@ FLAC__bool set_vc_field(FLAC__StreamMetaData *block, const Argument_VcField *fie
entry.length = strlen(field->field);
entry.entry = field->field;
if(!FLAC__metadata_object_vorbiscomment_set_comment(block, block->data.vorbis_comment.num_comments, &entry, /*copy=*/true)) {
if(!FLAC__metadata_object_vorbiscomment_insert_comment(block, block->data.vorbis_comment.num_comments, entry, /*copy=*/true)) {
return false;
}
else {