From c42f5d88da00f9dcf9369cc1235a3cf6dddadf28 Mon Sep 17 00:00:00 2001 From: Martin Scarratt Date: Thu, 31 Aug 2006 19:28:58 +0000 Subject: 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 --- apps/tree.c | 5 +++++ 1 file changed, 5 insertions(+) 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) if (global_settings.rec_startup) { /* We fake being in the menu structure by calling the appropriate parent when we drop out of each screen */ +#if CONFIG_CODEC == SWCODEC + /* Put in a 1 sec pause to slow bootup or the recording codecs + won't initialize */ + sleep(HZ); +#endif recording_screen(false); rec_menu(); main_menu(); -- cgit v1.2.3