From 47d40c2553a25e0f1ccc2fb6ad71662e0dad0941 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 16 Jul 2009 09:32:46 +0200 Subject: [PATCH] vorbisdec: Check for empty tag strings. Fixes #588724 --- ext/vorbis/vorbisdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c index e4400859d..6cc2bac77 100644 --- a/ext/vorbis/vorbisdec.c +++ b/ext/vorbis/vorbisdec.c @@ -726,8 +726,9 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet) vd->taglist = gst_tag_list_new (); } if (encoder) { - gst_tag_list_add (vd->taglist, GST_TAG_MERGE_REPLACE, - GST_TAG_ENCODER, encoder, NULL); + if (encoder[0]) + gst_tag_list_add (vd->taglist, GST_TAG_MERGE_REPLACE, + GST_TAG_ENCODER, encoder, NULL); g_free (encoder); } gst_tag_list_add (vd->taglist, GST_TAG_MERGE_REPLACE, -- 2.34.1