diff options
author | Michael Hohmuth <sideral@rockbox.org> | 2011-02-27 20:25:11 +0000 |
---|---|---|
committer | Michael Hohmuth <sideral@rockbox.org> | 2011-02-27 20:25:11 +0000 |
commit | 1a23e0ca1927ad9712f42d86fff998d0f62bc39e (patch) | |
tree | f962318b7904b71af6bc711e9c08db0dec9ac605 /apps | |
parent | 0facf23e142cf7f2296b4e99826911f04aa15e31 (diff) | |
download | rockbox-1a23e0ca1927ad9712f42d86fff998d0f62bc39e.tar.gz rockbox-1a23e0ca1927ad9712f42d86fff998d0f62bc39e.zip |
Fix database import and export
Correct an omission that happened when the DB schema was changed last
time. Add a comment to enum tag_type to prevent this from happening
in the future.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 2 | ||||
-rw-r--r-- | apps/tagcache.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 6dfc88bba4..42ef2d3ef0 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -130,7 +130,7 @@ static long tempbuf_pos; | |||
130 | static const char *tags_str[] = { "artist", "album", "genre", "title", | 130 | static const char *tags_str[] = { "artist", "album", "genre", "title", |
131 | "filename", "composer", "comment", "albumartist", "grouping", "year", | 131 | "filename", "composer", "comment", "albumartist", "grouping", "year", |
132 | "discnumber", "tracknumber", "bitrate", "length", "playcount", "rating", | 132 | "discnumber", "tracknumber", "bitrate", "length", "playcount", "rating", |
133 | "playtime", "lastplayed", "commitid", "mtime" }; | 133 | "playtime", "lastplayed", "commitid", "mtime", "lastoffset" }; |
134 | 134 | ||
135 | /* Status information of the tagcache. */ | 135 | /* Status information of the tagcache. */ |
136 | static struct tagcache_stat tc_stat; | 136 | static struct tagcache_stat tc_stat; |
diff --git a/apps/tagcache.h b/apps/tagcache.h index 8c09063fb9..59f8b8bc9a 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "metadata.h" | 26 | #include "metadata.h" |
27 | 27 | ||
28 | /** | 28 | /** |
29 | Note: When adding new tags, make sure to update index_entry_ec in | 29 | Note: When adding new tags, make sure to update index_entry_ec and tags_str in |
30 | tagcache.c and bump up the header version too. | 30 | tagcache.c and bump up the header version too. |
31 | */ | 31 | */ |
32 | enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, | 32 | enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, |