summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/main.c5
-rw-r--r--apps/tree.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c
index 513cda1fcb..9b9ab0eb12 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -263,7 +263,7 @@ void init(void)
status_init();
playlist_init();
tree_init();
-
+
/* No buffer allocation (see buffer.c) may take place after the call to
audio_init() since the mpeg thread takes the rest of the buffer space */
mp3_init( global_settings.volume,
@@ -289,6 +289,9 @@ void init(void)
pcm_init_recording();
#endif
talk_init();
+ /* runtime database has to be initialized after audio_init() */
+ rundb_init();
+
#ifdef AUTOROCK
{
diff --git a/apps/tree.c b/apps/tree.c
index 8a2e661264..b2d46389ae 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1476,7 +1476,6 @@ void tree_init(void)
tc.dirfilter = &global_settings.dirfilter;
tagdb_init();
- rundb_init();
tc.name_buffer_size = AVERAGE_FILENAME_LENGTH * max_files;
tc.name_buffer = buffer_alloc(tc.name_buffer_size);