diff options
-rw-r--r-- | apps/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index 27641abe2d..4c7d48e2d9 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -239,7 +239,9 @@ static int init_dircache(bool preinit) | |||
239 | static void init_tagcache(void) | 239 | static void init_tagcache(void) |
240 | { | 240 | { |
241 | bool clear = false; | 241 | bool clear = false; |
242 | 242 | #if CONFIG_CODEC == SWCODEC | |
243 | long talked_tick = 0; | ||
244 | #endif | ||
243 | tagcache_init(); | 245 | tagcache_init(); |
244 | 246 | ||
245 | while (!tagcache_is_initialized()) | 247 | while (!tagcache_is_initialized()) |
@@ -251,7 +253,6 @@ static void init_tagcache(void) | |||
251 | #if CONFIG_CODEC == SWCODEC | 253 | #if CONFIG_CODEC == SWCODEC |
252 | /* hwcodec can't use voice here, as the database commit | 254 | /* hwcodec can't use voice here, as the database commit |
253 | * uses the audio buffer. */ | 255 | * uses the audio buffer. */ |
254 | static long talked_tick = 0; | ||
255 | if(global_settings.talk_menu | 256 | if(global_settings.talk_menu |
256 | && (talked_tick == 0 | 257 | && (talked_tick == 0 |
257 | || TIME_AFTER(current_tick, talked_tick+7*HZ))) | 258 | || TIME_AFTER(current_tick, talked_tick+7*HZ))) |