diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-04-11 11:02:45 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-04-11 11:02:45 +0000 |
| commit | dfa9f440349d7532423373b2bac5993ee5e958a9 (patch) | |
| tree | 1bdd5c62fbb48995948b24fdb939482a28399001 /apps/plugins/mpegplayer/mpeg_settings.c | |
| parent | 7c4b786851ec90364c0335b46d093fb6dba1af01 (diff) | |
| download | rockbox-dfa9f440349d7532423373b2bac5993ee5e958a9.zip rockbox-dfa9f440349d7532423373b2bac5993ee5e958a9.tar.gz rockbox-dfa9f440349d7532423373b2bac5993ee5e958a9.tar.bz2 rockbox-dfa9f440349d7532423373b2bac5993ee5e958a9.tar.xz | |
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
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.c')
| -rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index bf0b3d5..c692edf 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c @@ -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; } |