moved rundb_init back to main, it has to be inited after audio_init, also, it has nothing to do with tree (though tagdb does have to do with tree)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7014 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michiel Van Der Kolk 2005-07-04 22:10:42 +00:00
parent afe0941ae5
commit d6ab723584
2 changed files with 4 additions and 2 deletions

View file

@ -289,6 +289,9 @@ void init(void)
pcm_init_recording(); pcm_init_recording();
#endif #endif
talk_init(); talk_init();
/* runtime database has to be initialized after audio_init() */
rundb_init();
#ifdef AUTOROCK #ifdef AUTOROCK
{ {

View file

@ -1476,7 +1476,6 @@ void tree_init(void)
tc.dirfilter = &global_settings.dirfilter; tc.dirfilter = &global_settings.dirfilter;
tagdb_init(); tagdb_init();
rundb_init();
tc.name_buffer_size = AVERAGE_FILENAME_LENGTH * max_files; tc.name_buffer_size = AVERAGE_FILENAME_LENGTH * max_files;
tc.name_buffer = buffer_alloc(tc.name_buffer_size); tc.name_buffer = buffer_alloc(tc.name_buffer_size);