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 54aefb8..fb9d940 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -333,15 +333,29 @@ int onplay(char* file, int attr)
selected_file = file;
if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA))
- menu[i++] = (struct menu_items) { str(LANG_QUEUE), queue_file };
+ {
+ menu[i].desc = str(LANG_QUEUE);
+ menu[i].function = queue_file;
+ i++;
+ }
- menu[i++] = (struct menu_items) { str(LANG_RENAME), rename_file };
+ menu[i].desc = str(LANG_RENAME);
+ menu[i].function = rename_file;
+ i++;
if (!(attr & ATTR_DIRECTORY))
- menu[i++] = (struct menu_items) { str(LANG_DELETE), delete_file };
+ {
+ menu[i].desc = str(LANG_DELETE);
+ menu[i].function = delete_file;
+ i++;
+ }
if (attr & TREE_ATTR_MPA)
- menu[i++] = (struct menu_items) { "VBRfix", vbr_fix };
+ {
+ menu[i].desc = "VBRfix";
+ menu[i].function = vbr_fix;
+ i++;
+ }
/* DIY menu handling, since we want to exit after selection */
m = menu_init( menu, i );