diff options
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index 8f83c861bb..8298fe24ae 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -633,7 +633,7 @@ static int compare(const void *p1, const void *p2) | |||
633 | return strncasecmp(e1->name, e2->name, MAX_PATH); | 633 | return strncasecmp(e1->name, e2->name, MAX_PATH); |
634 | } | 634 | } |
635 | 635 | ||
636 | void tagtree_buffer_event(struct mp3entry *id3) | 636 | static void tagtree_buffer_event(struct mp3entry *id3) |
637 | { | 637 | { |
638 | /* Do not gather data unless proper setting has been enabled. */ | 638 | /* Do not gather data unless proper setting has been enabled. */ |
639 | if (!global_settings.runtimedb) | 639 | if (!global_settings.runtimedb) |
@@ -700,7 +700,7 @@ static void tagtree_unbuffer_event(struct mp3entry *id3) | |||
700 | logf("ube:%s", id3->path); | 700 | logf("ube:%s", id3->path); |
701 | logf("-> %ld/%ld", playcount, playtime); | 701 | logf("-> %ld/%ld", playcount, playtime); |
702 | logf("-> %ld/%ld/%ld", id3->elapsed, id3->length, MIN(id3->length, id3->elapsed + 15 * 1000)); | 702 | logf("-> %ld/%ld/%ld", id3->elapsed, id3->length, MIN(id3->length, id3->elapsed + 15 * 1000)); |
703 | 703 | ||
704 | /* Queue the updates to the tagcache system. */ | 704 | /* Queue the updates to the tagcache system. */ |
705 | tagcache_update_numeric(id3->tagcache_idx, tag_playcount, playcount); | 705 | tagcache_update_numeric(id3->tagcache_idx, tag_playcount, playcount); |
706 | tagcache_update_numeric(id3->tagcache_idx, tag_playtime, playtime); | 706 | tagcache_update_numeric(id3->tagcache_idx, tag_playtime, playtime); |
@@ -921,9 +921,7 @@ void tagtree_init(void) | |||
921 | root_menu = 0; | 921 | root_menu = 0; |
922 | 922 | ||
923 | uniqbuf = buffer_alloc(UNIQBUF_SIZE); | 923 | uniqbuf = buffer_alloc(UNIQBUF_SIZE); |
924 | #if CONFIG_CODEC != SWCODEC | ||
925 | audio_set_track_buffer_event(tagtree_buffer_event); | 924 | audio_set_track_buffer_event(tagtree_buffer_event); |
926 | #endif | ||
927 | audio_set_track_unbuffer_event(tagtree_unbuffer_event); | 925 | audio_set_track_unbuffer_event(tagtree_unbuffer_event); |
928 | } | 926 | } |
929 | 927 | ||