diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-06-19 12:08:22 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-06-19 12:08:22 +0000 |
commit | c6db7870ef001ffd7a64884b3e03d3b4cfc67b1d (patch) | |
tree | 55480a6999283da7a1932a7ed906d9dd9f757950 /apps/recorder/recording.c | |
parent | 474c4b5427d4bce75ddb9217756da0173fe3ba84 (diff) |
Slightly better handling of disk-full situations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 97198b9d18..ff79be24f7 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -362,7 +362,7 @@ bool recording_screen(void) timeout = current_tick + HZ/10; seconds = mpeg_recorded_time() / HZ; - + update_countdown--; if(update_countdown == 0 || seconds > last_seconds) { @@ -480,6 +480,27 @@ bool recording_screen(void) lcd_update_rect(0, 8 + h*2, LCD_WIDTH, h); } } + + if(mpeg_status() & MPEG_STATUS_ERROR) + { + done = true; + } + } + + if(mpeg_status() & MPEG_STATUS_ERROR) + { + status_set_playmode(STATUS_STOP); + splash(0, 0, true, str(LANG_DISK_FULL)); + status_draw(true); + lcd_update(); + mpeg_error_clear(); + + while(1) + { + button = button_get(true); + if(button == (BUTTON_OFF | BUTTON_REL)) + break; + } } mpeg_init_playback(); |