diff options
author | Dan Everton <dan@iocaine.org> | 2007-08-08 10:19:56 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2007-08-08 10:19:56 +0000 |
commit | eecfe9f1cb85b53b59d2487e0ae4c05bf43a8bd3 (patch) | |
tree | 9ec358e6b12735468c63eebaaa02da9a7b5d0f65 /firmware | |
parent | ecae04a9f27f6694e748bbde5d49fbd47a01fec3 (diff) |
Add support for grouping tags. From FS#7362.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14242 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/id3.h | 1 | ||||
-rw-r--r-- | firmware/id3.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/id3.h b/firmware/export/id3.h index 8c91456040..2751fde6f5 100644 --- a/firmware/export/id3.h +++ b/firmware/export/id3.h @@ -153,6 +153,7 @@ struct mp3entry { char* composer; char* comment; char* albumartist; + char* grouping; int discnum; int tracknum; int version; diff --git a/firmware/id3.c b/firmware/id3.c index a66318b2fc..851aa83a5a 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -460,7 +460,9 @@ static const struct tag_resolver taglist[] = { { "TYE", 3, offsetof(struct mp3entry, year_string), &parseyearnum, false }, { "TCOM", 4, offsetof(struct mp3entry, composer), NULL, false }, { "TPE2", 4, offsetof(struct mp3entry, albumartist), NULL, false }, - { "TP2", 3, offsetof(struct mp3entry, albumartist), NULL, false }, + { "TP2", 3, offsetof(struct mp3entry, albumartist), NULL, false }, + { "TIT1", 4, offsetof(struct mp3entry, grouping), NULL, false }, + { "TT1", 3, offsetof(struct mp3entry, grouping), NULL, false }, { "COMM", 4, offsetof(struct mp3entry, comment), NULL, false }, { "TCON", 4, offsetof(struct mp3entry, genre_string), &parsegenre, false }, { "TCO", 3, offsetof(struct mp3entry, genre_string), &parsegenre, false }, @@ -1192,6 +1194,8 @@ void adjust_mp3entry(struct mp3entry *entry, void *dest, void *orig) entry->comment += offset; if (entry->albumartist) entry->albumartist += offset; + if (entry->grouping) + entry->grouping += offset; #if CONFIG_CODEC == SWCODEC if (entry->track_gain_string) entry->track_gain_string += offset; |