From ddcc25a141a6dee89e2b8f986c14ef66141a52c0 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 11 Nov 2002 13:19:17 +0000 Subject: Now reloads the dir when leaving the recording screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2824 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 96d8fcad94..6c51cf7319 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -126,6 +126,7 @@ bool recording_screen(void) int gain; int w, h; int update_countdown = 1; + bool have_recorded = false; cursor = 0; mpeg_init_recording(); @@ -168,6 +169,7 @@ bool recording_screen(void) /* Only act if the mpeg is stopped */ if(!mpeg_status()) { + have_recorded = true; mpeg_record(""); status_set_playmode(STATUS_RECORD); update_countdown = 1; /* Update immediately */ @@ -368,7 +370,7 @@ bool recording_screen(void) mpeg_init_playback(); - return false; + return have_recorded; } bool f2_rec_screen(void) -- cgit v1.2.3