summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-06-19 12:08:22 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-06-19 12:08:22 +0000
commitc6db7870ef001ffd7a64884b3e03d3b4cfc67b1d (patch)
tree55480a6999283da7a1932a7ed906d9dd9f757950 /apps
parent474c4b5427d4bce75ddb9217756da0173fe3ba84 (diff)
downloadrockbox-c6db7870ef001ffd7a64884b3e03d3b4cfc67b1d.tar.gz
rockbox-c6db7870ef001ffd7a64884b3e03d3b4cfc67b1d.zip
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')
-rw-r--r--apps/lang/english.lang5
-rw-r--r--apps/recorder/recording.c23
2 files changed, 27 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 78d2b5d710..c44b4aaa7f 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -1552,3 +1552,8 @@ id: LANG_SHOW_ICONS
desc: in settings_menu
eng: "Show Icons"
new:
+
+id: LANG_DISK_FULL
+desc: in recording screen
+eng: "The disk is full. Press OFF to continue."
+new:
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();