From 78f8b4f6132843e4103cf2e29eac93744e9a8c3c Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 8 Dec 2003 22:04:46 +0000 Subject: Fixed bug when filling tags in gstflacenc Original commit message from CVS: Fixed bug when filling tags in gstflacenc Added merging support, and a mode which stops after outputting tags to flactag --- ext/flac/gstflacenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/flac/gstflacenc.c') diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 437e682c..4b7bf16c 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -486,7 +486,7 @@ add_one_tag (const GstTagList *list, const gchar *tag, comments = gst_tag_to_vorbis_comments (list, tag); for (it = comments; it != NULL; it = it->next) { FLAC__StreamMetadata_VorbisComment_Entry commment_entry; - commment_entry.length = GUINT32_TO_LE (strlen(it->data) + 1); + commment_entry.length = GUINT32_TO_LE (strlen(it->data)); commment_entry.entry = it->data; FLAC__metadata_object_vorbiscomment_insert_comment (flacenc->meta[0], flacenc->meta[0]->data.vorbis_comment.num_comments, -- cgit