1
0
Fork 0
forked from len0rd/rockbox

Made the recording filename creation function global

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4020 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-11-06 00:44:38 +00:00
parent 6015b1ff58
commit ba9b433489
2 changed files with 5 additions and 4 deletions

View file

@ -136,7 +136,7 @@ void adjust_cursor(void)
}
}
static char *create_filename(void)
char *rec_create_filename(void)
{
static char fname[32];
struct tm * tm;
@ -216,14 +216,14 @@ bool recording_screen(void)
if(!mpeg_status())
{
have_recorded = true;
mpeg_record(create_filename());
mpeg_record(rec_create_filename());
status_set_playmode(STATUS_RECORD);
update_countdown = 1; /* Update immediately */
last_seconds = 0;
}
else
{
mpeg_new_file(create_filename());
mpeg_new_file(rec_create_filename());
update_countdown = 1; /* Update immediately */
}
break;
@ -394,7 +394,7 @@ bool recording_screen(void)
if (mpeg_status() && (seconds >= dseconds))
{
mpeg_new_file(create_filename());
mpeg_new_file(rec_create_filename());
update_countdown = 1;
last_seconds = 0;
}

View file

@ -20,5 +20,6 @@
#define RECORDING_H
bool recording_screen(void);
char *rec_create_filename(void);
#endif