diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-07 07:23:07 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-07 07:23:07 +0200 |
commit | 9d9fa0a31d983530befe1ab9f3c701d5fa82c8be (patch) | |
tree | 1a48cd3b6ffd005489268a161c3d2815b4cde7bb /ext/gme | |
parent | cf0c65b72cc7c4fb5a1db3d0d918e3321cfc01d2 (diff) | |
download | gstreamer-plugins-bad-9d9fa0a31d983530befe1ab9f3c701d5fa82c8be.tar.gz |
gme: Don't add empty string tags
Diffstat (limited to 'ext/gme')
-rw-r--r-- | ext/gme/gstgme.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/gme/gstgme.c b/ext/gme/gstgme.c index 9da380283..fb8485a80 100644 --- a/ext/gme/gstgme.c +++ b/ext/gme/gstgme.c @@ -439,29 +439,29 @@ gme_setup (GstGmeDec * gme) taglist = gst_tag_list_new (); - if (info->song) + if (info->song && *info->song) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_TITLE, info->song, NULL); - if (info->author) + if (info->author && *info->author) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ARTIST, info->author, NULL); /* Prefer the name of the official soundtrack over the name of the game (since this is * how track numbers are derived) */ - if (info->game) + if (info->game && *info->game) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ALBUM, info->game, NULL); - if (info->comment) + if (info->comment && *info->comment) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_COMMENT, info->comment, NULL); - if (info->dumper) + if (info->dumper && *info->dumper) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_CONTACT, info->dumper, NULL); - if (info->copyright) + if (info->copyright && *info->copyright) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_COPYRIGHT, info->copyright, NULL); - if (info->system) + if (info->system && *info->system) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ENCODER, info->system, NULL); |