diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 8 | ||||
-rw-r--r-- | apps/recorder/recording.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 0f095bef48..ab1527444c 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -136,7 +136,7 @@ void adjust_cursor(void) | |||
136 | } | 136 | } |
137 | } | 137 | } |
138 | 138 | ||
139 | static char *create_filename(void) | 139 | char *rec_create_filename(void) |
140 | { | 140 | { |
141 | static char fname[32]; | 141 | static char fname[32]; |
142 | struct tm * tm; | 142 | struct tm * tm; |
@@ -216,14 +216,14 @@ bool recording_screen(void) | |||
216 | if(!mpeg_status()) | 216 | if(!mpeg_status()) |
217 | { | 217 | { |
218 | have_recorded = true; | 218 | have_recorded = true; |
219 | mpeg_record(create_filename()); | 219 | mpeg_record(rec_create_filename()); |
220 | status_set_playmode(STATUS_RECORD); | 220 | status_set_playmode(STATUS_RECORD); |
221 | update_countdown = 1; /* Update immediately */ | 221 | update_countdown = 1; /* Update immediately */ |
222 | last_seconds = 0; | 222 | last_seconds = 0; |
223 | } | 223 | } |
224 | else | 224 | else |
225 | { | 225 | { |
226 | mpeg_new_file(create_filename()); | 226 | mpeg_new_file(rec_create_filename()); |
227 | update_countdown = 1; /* Update immediately */ | 227 | update_countdown = 1; /* Update immediately */ |
228 | } | 228 | } |
229 | break; | 229 | break; |
@@ -394,7 +394,7 @@ bool recording_screen(void) | |||
394 | 394 | ||
395 | if (mpeg_status() && (seconds >= dseconds)) | 395 | if (mpeg_status() && (seconds >= dseconds)) |
396 | { | 396 | { |
397 | mpeg_new_file(create_filename()); | 397 | mpeg_new_file(rec_create_filename()); |
398 | update_countdown = 1; | 398 | update_countdown = 1; |
399 | last_seconds = 0; | 399 | last_seconds = 0; |
400 | } | 400 | } |
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h index 4818b42b1f..08edbbcfb4 100644 --- a/apps/recorder/recording.h +++ b/apps/recorder/recording.h | |||
@@ -20,5 +20,6 @@ | |||
20 | #define RECORDING_H | 20 | #define RECORDING_H |
21 | 21 | ||
22 | bool recording_screen(void); | 22 | bool recording_screen(void); |
23 | char *rec_create_filename(void); | ||
23 | 24 | ||
24 | #endif | 25 | #endif |