diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 07d8d1d7a2..3ce0247188 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", "lastoffset" }; | 133 | "playtime", "lastplayed", "commitid", "mtime", "lastelapsed", "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; |
@@ -196,7 +196,7 @@ static const char * const tagfile_entry_ec = "ll"; | |||
196 | /** | 196 | /** |
197 | Note: This should be (1 + TAG_COUNT) amount of l's. | 197 | Note: This should be (1 + TAG_COUNT) amount of l's. |
198 | */ | 198 | */ |
199 | static const char * const index_entry_ec = "llllllllllllllllllllll"; | 199 | static const char * const index_entry_ec = "lllllllllllllllllllllll"; |
200 | 200 | ||
201 | static const char * const tagcache_header_ec = "lll"; | 201 | static const char * const tagcache_header_ec = "lll"; |
202 | static const char * const master_header_ec = "llllll"; | 202 | static const char * const master_header_ec = "llllll"; |
@@ -1752,6 +1752,10 @@ bool tagcache_fill_tags(struct mp3entry *id3, const char *filename) | |||
1752 | #if CONFIG_CODEC == SWCODEC | 1752 | #if CONFIG_CODEC == SWCODEC |
1753 | if (global_settings.autoresume_enable) | 1753 | if (global_settings.autoresume_enable) |
1754 | { | 1754 | { |
1755 | id3->elapsed = get_tag_numeric(entry, tag_lastelapsed, idx_id); | ||
1756 | logf("tagcache_fill_tags: Set elapsed for %s to %lX\n", | ||
1757 | id3->title, id3->elapsed); | ||
1758 | |||
1755 | id3->offset = get_tag_numeric(entry, tag_lastoffset, idx_id); | 1759 | id3->offset = get_tag_numeric(entry, tag_lastoffset, idx_id); |
1756 | logf("tagcache_fill_tags: Set offset for %s to %lX\n", | 1760 | logf("tagcache_fill_tags: Set offset for %s to %lX\n", |
1757 | id3->title, id3->offset); | 1761 | id3->title, id3->offset); |
@@ -2348,6 +2352,7 @@ static bool build_numeric_indices(struct tagcache_header *h, int tmpfd) | |||
2348 | tmpdb_copy_tag(tag_playtime); | 2352 | tmpdb_copy_tag(tag_playtime); |
2349 | tmpdb_copy_tag(tag_lastplayed); | 2353 | tmpdb_copy_tag(tag_lastplayed); |
2350 | tmpdb_copy_tag(tag_commitid); | 2354 | tmpdb_copy_tag(tag_commitid); |
2355 | tmpdb_copy_tag(tag_lastelapsed); | ||
2351 | tmpdb_copy_tag(tag_lastoffset); | 2356 | tmpdb_copy_tag(tag_lastoffset); |
2352 | 2357 | ||
2353 | /* Avoid processing this entry again. */ | 2358 | /* Avoid processing this entry again. */ |
@@ -3419,7 +3424,8 @@ static int parse_changelog_line(int line_n, char *buf, void *parameters) | |||
3419 | int idx_id; | 3424 | int idx_id; |
3420 | long masterfd = (long)parameters; | 3425 | long masterfd = (long)parameters; |
3421 | const int import_tags[] = { tag_playcount, tag_rating, tag_playtime, | 3426 | const int import_tags[] = { tag_playcount, tag_rating, tag_playtime, |
3422 | tag_lastplayed, tag_commitid, tag_lastoffset }; | 3427 | tag_lastplayed, tag_commitid, tag_lastelapsed, |
3428 | tag_lastoffset }; | ||
3423 | int i; | 3429 | int i; |
3424 | (void)line_n; | 3430 | (void)line_n; |
3425 | 3431 | ||