# HG changeset patch # User chainsaw # Date 1170625253 28800 # Node ID 621e6ec66973159f885dd40f0673285966cedd81 # Parent 668851c95e15a0832d0039d36fe69c1ca1222168 [svn] Obliterate empty tags, just like in mpg123. diff -r 668851c95e15 -r 621e6ec66973 ChangeLog --- a/ChangeLog Sun Feb 04 12:21:34 2007 -0800 +++ b/ChangeLog Sun Feb 04 13:40:53 2007 -0800 @@ -1,3 +1,11 @@ +2007-02-04 20:21:34 +0000 William Pitcock + revision [1300] + - remove streaming configuration since it's no longer relevant. + + trunk/src/vorbis/configure.c | 123 ------------------------------------------- + 1 file changed, 123 deletions(-) + + 2007-02-04 20:19:29 +0000 William Pitcock revision [1298] - clean up the configure GUI a little. diff -r 668851c95e15 -r 621e6ec66973 src/vorbis/vorbis.c --- a/src/vorbis/vorbis.c Sun Feb 04 12:21:34 2007 -0800 +++ b/src/vorbis/vorbis.c Sun Feb 04 13:40:53 2007 -0800 @@ -37,6 +37,8 @@ #define DEBUG +#define REMOVE_NONEXISTANT_TAG(x) if (!*x) { x = NULL; } + #include #include @@ -782,6 +784,13 @@ tuple->genre = g_strdup(vorbis_comment_query(comment, "genre", 0)); tuple->comment = g_strdup(vorbis_comment_query(comment, "comment", 0)); + + /* remove any blank tags */ + REMOVE_NONEXISTANT_TAG(tuple->performer); + REMOVE_NONEXISTANT_TAG(tuple->album_name); + REMOVE_NONEXISTANT_TAG(tuple->track_name); + REMOVE_NONEXISTANT_TAG(tuple->genre); + REMOVE_NONEXISTANT_TAG(tuple->comment); } return tuple;