diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-03-01 22:27:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-03-01 22:27:11 +0000 |
commit | 31e29038eacd792079fd3042d8b6ee2ae7d35d68 (patch) | |
tree | 43a41221ce4ce9aff9921daf3a309b6843345de5 /apps/recorder | |
parent | 9529d5fd14ec8384816911417f73cd02e026e1f8 (diff) |
Always stop recording when performing shutdown in the recording screen. Fixes the file corruption reported by bmmpxf in the forums.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8877 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 2d31419cbb..92275a580e 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -64,6 +64,7 @@ #if CONFIG_KEYPAD == RECORDER_PAD +#define REC_SHUTDOWN (BUTTON_OFF | BUTTON_REPEAT) #define REC_STOPEXIT BUTTON_OFF #define REC_RECPAUSE BUTTON_PLAY #define REC_INC BUTTON_RIGHT @@ -75,6 +76,7 @@ #define REC_F3 BUTTON_F3 #elif CONFIG_KEYPAD == ONDIO_PAD /* only limited features */ +#define REC_SHUTDOWN (BUTTON_OFF | BUTTON_REPEAT) #define REC_STOPEXIT BUTTON_OFF #define REC_RECPAUSE_PRE BUTTON_MENU #define REC_RECPAUSE (BUTTON_MENU | BUTTON_REL) @@ -85,6 +87,7 @@ #define REC_SETTINGS (BUTTON_MENU | BUTTON_REPEAT) #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) +#define REC_SHUTDOWN (BUTTON_OFF | BUTTON_REPEAT) #define REC_STOPEXIT BUTTON_OFF #define REC_RECPAUSE BUTTON_REC #define REC_INC BUTTON_RIGHT @@ -94,6 +97,7 @@ #define REC_SETTINGS BUTTON_MODE #elif CONFIG_KEYPAD == GMINI100_PAD +#define REC_SHUTDOWN (BUTTON_OFF | BUTTON_REPEAT) #define REC_STOPEXIT BUTTON_OFF #define REC_RECPAUSE BUTTON_ON #define REC_INC BUTTON_RIGHT @@ -638,6 +642,7 @@ bool recording_screen(void) switch(button) { case REC_STOPEXIT: + case REC_SHUTDOWN: /* turn off the trigger */ peak_meter_trigger(false); peak_meter_set_trigger_listener(NULL); |