diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sound_menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 6e4523cb89..19dc57b1a7 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -808,8 +808,9 @@ bool sound_menu(void) | |||
808 | #if CONFIG_CODEC == SWCODEC | 808 | #if CONFIG_CODEC == SWCODEC |
809 | pcmbuf_set_low_latency(true); | 809 | pcmbuf_set_low_latency(true); |
810 | #endif | 810 | #endif |
811 | if (items[selected].function) | 811 | if (items[selected].function && |
812 | items[selected].function(); | 812 | items[selected].function()) |
813 | done = true; | ||
813 | 814 | ||
814 | #if CONFIG_CODEC == SWCODEC | 815 | #if CONFIG_CODEC == SWCODEC |
815 | pcmbuf_set_low_latency(false); | 816 | pcmbuf_set_low_latency(false); |
@@ -819,7 +820,7 @@ bool sound_menu(void) | |||
819 | } | 820 | } |
820 | menu_exit(m); | 821 | menu_exit(m); |
821 | 822 | ||
822 | return selected==MENU_ATTACHED_USB?true:false; | 823 | return selected == MENU_SELECTED_EXIT ? false : true; |
823 | } | 824 | } |
824 | 825 | ||
825 | #ifdef HAVE_RECORDING | 826 | #ifdef HAVE_RECORDING |