summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
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();