flacdec: Don't send empty string tags

This commit is contained in:
Edward Hervey 2009-07-01 08:40:40 +02:00
parent 122d40a742
commit f2ba1229ba

View file

@ -370,7 +370,8 @@ gst_flac_dec_update_metadata (GstFlacDec * flacdec,
if (gst_tag_parse_extended_comment (vc, &name, NULL, &value, TRUE)) {
GST_DEBUG_OBJECT (flacdec, "%s : %s", name, value);
gst_vorbis_tag_add (list, name, value);
if (value && strlen (value))
gst_vorbis_tag_add (list, name, value);
g_free (name);
g_free (value);
}