1
0
Fork 0
forked from len0rd/rockbox

mpegplayer: Hopefully help some problems on dual core. Make USB mode exit correctly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13109 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-04-11 11:02:45 +00:00
parent 7c4b786851
commit dfa9f44034
2 changed files with 22 additions and 22 deletions

View file

@ -40,7 +40,7 @@ bool mpeg_menu(void)
{ "Skip frames", NULL },
{ "Quit mpegplayer", NULL },
};
m = rb->menu_init(items, sizeof(items) / sizeof(*items),
NULL, NULL, NULL, NULL);
@ -52,19 +52,21 @@ bool mpeg_menu(void)
switch(result)
{
case 0: /* Show FPS */
rb->set_option("Display FPS",&settings.showfps,INT,
rb->set_option("Display FPS",&settings.showfps,INT,
noyes, 2, NULL);
break;
case 1: /* Limit FPS */
rb->set_option("Limit FPS",&settings.limitfps,INT,
rb->set_option("Limit FPS",&settings.limitfps,INT,
noyes, 2, NULL);
break;
case 2: /* Skip frames */
rb->set_option("Skip frames",&settings.skipframes,INT,
rb->set_option("Skip frames",&settings.skipframes,INT,
noyes, 2, NULL);
break;
default:
menu_quit=1;
if (result == MENU_ATTACHED_USB)
result = 3;
break;
}
}
@ -99,7 +101,7 @@ void init_settings(void)
SETTINGS_VERSION);
}
/* Keep a copy of the saved version of the settings - so we can check if
/* Keep a copy of the saved version of the settings - so we can check if
the settings have changed when we quit */
old_settings = settings;
}