flacdec: Don't send empty string tags
authorEdward Hervey <bilboed@bilboed.com>
Wed, 1 Jul 2009 06:40:40 +0000 (08:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 1 Jul 2009 06:40:40 +0000 (08:40 +0200)
ext/flac/gstflacdec.c

index 2276ac7..3f9c75f 100644 (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);
     }