summaryrefslogtreecommitdiffstats
path: root/gst/id3demux/id3tags.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-01-23 09:22:17 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-01-23 09:22:17 +0000
commit2ecee9a43d8e420eb21078711e766c5500bf8c04 (patch)
tree985bef3bae879dc4e8a7d614275d4a8919cd2fba /gst/id3demux/id3tags.c
parente3ba1c0fd5f99782b7481f79e410a7cbf56c167b (diff)
gst/id3demux/: Rewrite parsing of text tags to handle multiple NULL terminated strings. Parse numeric genre strings a...
Original commit message from CVS: * gst/id3demux/id3tags.c: (id3demux_read_id3v2_tag): * gst/id3demux/id3tags.h: * gst/id3demux/id3v2frames.c: (id3demux_id3v2_parse_frame), (parse_comment_frame), (parse_text_identification_frame), (id3v2_tag_to_taglist), (id3v2_are_digits), (id3v2_genre_string_to_taglist), (id3v2_genre_fields_to_taglist), (parse_split_strings), (free_tag_strings): Rewrite parsing of text tags to handle multiple NULL terminated strings. Parse numeric genre strings and ID3v2 type "(3)(6)Alternative" style genre strings. Parse dates that are only YYYY or YYYY-mm format.
Diffstat (limited to 'gst/id3demux/id3tags.c')
-rw-r--r--gst/id3demux/id3tags.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/id3demux/id3tags.c b/gst/id3demux/id3tags.c
index e25b4291..12765e61 100644
--- a/gst/id3demux/id3tags.c
+++ b/gst/id3demux/id3tags.c
@@ -198,6 +198,9 @@ id3demux_read_id3v2_tag (GstBuffer * buffer, guint * id3v2_size,
*tags = work.tags;
}
+ if (work.prev_genre)
+ g_free (work.prev_genre);
+
return result;
}