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
This commit is contained in:
Martin Scarratt 2006-08-31 19:28:58 +00:00
parent 657dcb5165
commit c42f5d88da

View file

@ -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();