summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2008-05-15 23:00:33 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2008-05-15 23:00:33 +0000
commit909811286919421bd3b22e5820118a821cfe6952 (patch)
tree98a6eed199366ccfeae4693170794fc5d010fd5d /apps/recorder/recording.c
parenta3524029bf3681fccd8b221a24849794f30bd26d (diff)
Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17532 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 715a06d823..c2b2360df1 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -721,9 +721,11 @@ void rec_command(enum recording_command cmd)
case RECORDING_CMD_STOP_SHUTDOWN:
pm_activate_clipcount(false);
audio_stop_recording();
+#if CONFIG_CODEC == SWCODEC
audio_close_recording();
+#endif
sys_poweroff();
- break;
+ break;
case RECORDING_CMD_STOP:
pm_activate_clipcount(false);
audio_stop_recording();