summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/onplay.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 54aefb8e92..fb9d940bf3 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -333,15 +333,29 @@ int onplay(char* file, int attr)
333 selected_file = file; 333 selected_file = file;
334 334
335 if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA)) 335 if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA))
336 menu[i++] = (struct menu_items) { str(LANG_QUEUE), queue_file }; 336 {
337 menu[i].desc = str(LANG_QUEUE);
338 menu[i].function = queue_file;
339 i++;
340 }
337 341
338 menu[i++] = (struct menu_items) { str(LANG_RENAME), rename_file }; 342 menu[i].desc = str(LANG_RENAME);
343 menu[i].function = rename_file;
344 i++;
339 345
340 if (!(attr & ATTR_DIRECTORY)) 346 if (!(attr & ATTR_DIRECTORY))
341 menu[i++] = (struct menu_items) { str(LANG_DELETE), delete_file }; 347 {
348 menu[i].desc = str(LANG_DELETE);
349 menu[i].function = delete_file;
350 i++;
351 }
342 352
343 if (attr & TREE_ATTR_MPA) 353 if (attr & TREE_ATTR_MPA)
344 menu[i++] = (struct menu_items) { "VBRfix", vbr_fix }; 354 {
355 menu[i].desc = "VBRfix";
356 menu[i].function = vbr_fix;
357 i++;
358 }
345 359
346 /* DIY menu handling, since we want to exit after selection */ 360 /* DIY menu handling, since we want to exit after selection */
347 m = menu_init( menu, i ); 361 m = menu_init( menu, i );