summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Scarratt <mmmm@rockbox.org>2006-08-31 19:28:58 +0000
committerMartin Scarratt <mmmm@rockbox.org>2006-08-31 19:28:58 +0000
commitc42f5d88da00f9dcf9369cc1235a3cf6dddadf28 (patch)
tree514223a600e3b1a6b7fe0d986a892ba814d041d8
parent657dcb5165e80b3363b89ca3108356878d4c048e (diff)
downloadrockbox-c42f5d88da00f9dcf9369cc1235a3cf6dddadf28.tar.gz
rockbox-c42f5d88da00f9dcf9369cc1235a3cf6dddadf28.zip
When booting into the recording screen on SWcodec targets, the codecs attempt to load before the player is fully initialized causing a hang. Fix it with a quick nap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10829 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 2d9b1bf7b4..201906f2ce 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -577,6 +577,11 @@ static bool dirbrowse(void)
577 if (global_settings.rec_startup) { 577 if (global_settings.rec_startup) {
578 /* We fake being in the menu structure by calling 578 /* We fake being in the menu structure by calling
579 the appropriate parent when we drop out of each screen */ 579 the appropriate parent when we drop out of each screen */
580#if CONFIG_CODEC == SWCODEC
581 /* Put in a 1 sec pause to slow bootup or the recording codecs
582 won't initialize */
583 sleep(HZ);
584#endif
580 recording_screen(false); 585 recording_screen(false);
581 rec_menu(); 586 rec_menu();
582 main_menu(); 587 main_menu();