diff options
| author | Teruaki Kawashima <teru@rockbox.org> | 2010-11-26 12:32:00 +0000 |
|---|---|---|
| committer | Teruaki Kawashima <teru@rockbox.org> | 2010-11-26 12:32:00 +0000 |
| commit | 043ebca136cfb38fc9ff1610540100729b4c96db (patch) | |
| tree | 3f12b7aced03d439223ee14a65e1cf7e45c44b1b /apps/plugins/mpegplayer/mpeg_settings.c | |
| parent | b397fe5ae373e3b62fee9150ab786c344c2084cd (diff) | |
| download | rockbox-043ebca136cfb38fc9ff1610540100729b4c96db.zip rockbox-043ebca136cfb38fc9ff1610540100729b4c96db.tar.gz rockbox-043ebca136cfb38fc9ff1610540100729b4c96db.tar.bz2 rockbox-043ebca136cfb38fc9ff1610540100729b4c96db.tar.xz | |
FS#8607: MPEG video playlist
Add mode to play multiple mpeg files in the same directory in the order the file browser shows.
In this mode, Mpegplayer exits after finishing the last .mpg file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28667 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.c')
| -rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index 2a5c4be..94a375d 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c @@ -275,6 +275,7 @@ static struct configdata config[] = {TYPE_INT, 0, 2, { .int_p = &settings.crossfeed }, "Crossfeed", NULL}, {TYPE_INT, 0, 2, { .int_p = &settings.equalizer }, "Equalizer", NULL}, {TYPE_INT, 0, 2, { .int_p = &settings.dithering }, "Dithering", NULL}, + {TYPE_INT, 0, 2, { .int_p = &settings.play_mode }, "Play mode", NULL}, #ifdef HAVE_BACKLIGHT_BRIGHTNESS {TYPE_INT, -1, INT_MAX, { .int_p = &settings.backlight_brightness }, "Backlight brightness", NULL}, @@ -286,6 +287,11 @@ static const struct opt_items noyes[2] = { { "Yes", -1 }, }; +static const struct opt_items singleall[2] = { + { "Single", -1 }, + { "All", -1 }, +}; + static const struct opt_items enabledisable[2] = { { "Disable", -1 }, { "Enable", -1 }, @@ -1191,7 +1197,7 @@ static void mpeg_settings(void) MENUITEM_STRINGLIST(menu, "Settings", mpeg_menu_sysevent_callback, "Display Options", "Audio Options", - "Resume Options", clear_str); + "Resume Options", "Play Mode", clear_str); rb->button_clear_queue(); @@ -1219,6 +1225,11 @@ static void mpeg_settings(void) resume_options(); break; + case MPEG_SETTING_PLAY_MODE: + mpeg_set_option("Play mode", &settings.play_mode, + INT, singleall, 2, NULL); + break; + case MPEG_SETTING_CLEAR_RESUMES: clear_resume_count(); break; @@ -1239,6 +1250,7 @@ void init_settings(const char* filename) settings.showfps = 0; /* Do not show FPS */ settings.limitfps = 1; /* Limit FPS */ settings.skipframes = 1; /* Skip frames */ + settings.play_mode = 0; /* Play single video */ settings.resume_options = MPEG_RESUME_MENU_ALWAYS; /* Enable start menu */ settings.resume_count = 0; #ifdef HAVE_BACKLIGHT_BRIGHTNESS |