From 8e8d38bb3294dce6e8227be72ed68553ce05eb38 Mon Sep 17 00:00:00 2001 From: Michael Hohmuth Date: Thu, 4 Nov 2010 17:36:08 +0100 Subject: [PATCH 3/3] Do not attempt to access statistics before tagcache is initialized and ready to use. Otherwise, statistics for the first track played after power-on may not be gathered. --- apps/tagtree.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/apps/tagtree.c b/apps/tagtree.c index 78c48b4..1e6885d 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -652,6 +652,9 @@ static void tagtree_buffer_event(void *data) logf("be:%s", id3->path); + while (! tagcache_is_usable()) + yield(); + if (!tagcache_find_index(&tcs, id3->path)) { logf("tc stat: not found: %s", id3->path); -- 1.7.1