From db1e12bac01ad8905bd4204993954d3b709eaacd Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 15 Dec 2007 23:51:13 +0000 Subject: Quick fix to prevent freezing of H10 (possibly others too) when left at the disk full message. Needs more investigation to find the cause of the freeze. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15938 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 7824d0ae67..2f41d8f1f2 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -1896,6 +1896,13 @@ bool recording_screen(bool no_source) FOR_NB_SCREENS(i) screens[i].update(); +#if CONFIG_CODEC == SWCODEC + /* stop recording - some players like H10 freeze otherwise + TO DO: find out why it freezes and fix properly */ + rec_command(RECORDING_CMD_STOP); + audio_close_recording(); +#endif + audio_error_clear(); while(1) -- cgit v1.2.3