summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.c')
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c
index 2a5c4be617..94a375d866 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.c
+++ b/apps/plugins/mpegplayer/mpeg_settings.c
@@ -275,6 +275,7 @@ static struct configdata config[] =
275 {TYPE_INT, 0, 2, { .int_p = &settings.crossfeed }, "Crossfeed", NULL}, 275 {TYPE_INT, 0, 2, { .int_p = &settings.crossfeed }, "Crossfeed", NULL},
276 {TYPE_INT, 0, 2, { .int_p = &settings.equalizer }, "Equalizer", NULL}, 276 {TYPE_INT, 0, 2, { .int_p = &settings.equalizer }, "Equalizer", NULL},
277 {TYPE_INT, 0, 2, { .int_p = &settings.dithering }, "Dithering", NULL}, 277 {TYPE_INT, 0, 2, { .int_p = &settings.dithering }, "Dithering", NULL},
278 {TYPE_INT, 0, 2, { .int_p = &settings.play_mode }, "Play mode", NULL},
278#ifdef HAVE_BACKLIGHT_BRIGHTNESS 279#ifdef HAVE_BACKLIGHT_BRIGHTNESS
279 {TYPE_INT, -1, INT_MAX, { .int_p = &settings.backlight_brightness }, 280 {TYPE_INT, -1, INT_MAX, { .int_p = &settings.backlight_brightness },
280 "Backlight brightness", NULL}, 281 "Backlight brightness", NULL},
@@ -286,6 +287,11 @@ static const struct opt_items noyes[2] = {
286 { "Yes", -1 }, 287 { "Yes", -1 },
287}; 288};
288 289
290static const struct opt_items singleall[2] = {
291 { "Single", -1 },
292 { "All", -1 },
293};
294
289static const struct opt_items enabledisable[2] = { 295static const struct opt_items enabledisable[2] = {
290 { "Disable", -1 }, 296 { "Disable", -1 },
291 { "Enable", -1 }, 297 { "Enable", -1 },
@@ -1191,7 +1197,7 @@ static void mpeg_settings(void)
1191 1197
1192 MENUITEM_STRINGLIST(menu, "Settings", mpeg_menu_sysevent_callback, 1198 MENUITEM_STRINGLIST(menu, "Settings", mpeg_menu_sysevent_callback,
1193 "Display Options", "Audio Options", 1199 "Display Options", "Audio Options",
1194 "Resume Options", clear_str); 1200 "Resume Options", "Play Mode", clear_str);
1195 1201
1196 rb->button_clear_queue(); 1202 rb->button_clear_queue();
1197 1203
@@ -1219,6 +1225,11 @@ static void mpeg_settings(void)
1219 resume_options(); 1225 resume_options();
1220 break; 1226 break;
1221 1227
1228 case MPEG_SETTING_PLAY_MODE:
1229 mpeg_set_option("Play mode", &settings.play_mode,
1230 INT, singleall, 2, NULL);
1231 break;
1232
1222 case MPEG_SETTING_CLEAR_RESUMES: 1233 case MPEG_SETTING_CLEAR_RESUMES:
1223 clear_resume_count(); 1234 clear_resume_count();
1224 break; 1235 break;
@@ -1239,6 +1250,7 @@ void init_settings(const char* filename)
1239 settings.showfps = 0; /* Do not show FPS */ 1250 settings.showfps = 0; /* Do not show FPS */
1240 settings.limitfps = 1; /* Limit FPS */ 1251 settings.limitfps = 1; /* Limit FPS */
1241 settings.skipframes = 1; /* Skip frames */ 1252 settings.skipframes = 1; /* Skip frames */
1253 settings.play_mode = 0; /* Play single video */
1242 settings.resume_options = MPEG_RESUME_MENU_ALWAYS; /* Enable start menu */ 1254 settings.resume_options = MPEG_RESUME_MENU_ALWAYS; /* Enable start menu */
1243 settings.resume_count = 0; 1255 settings.resume_count = 0;
1244#ifdef HAVE_BACKLIGHT_BRIGHTNESS 1256#ifdef HAVE_BACKLIGHT_BRIGHTNESS