summaryrefslogtreecommitdiffstats
path: root/ext/flac
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-07-01 08:40:40 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-07-01 08:40:40 +0200
commitf2ba1229ba2e1b8a1ebbee35e6b29c86b734a205 (patch)
treed2777c80219a3feee60158bbbb92e514a74a1b6b /ext/flac
parent122d40a742b18ddaf8873d9c700f87738bd74f38 (diff)
flacdec: Don't send empty string tags
Diffstat (limited to 'ext/flac')
-rw-r--r--ext/flac/gstflacdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 2276ac74..3f9c75f4 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -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);
}