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:
parent
6015b1ff58
commit
ba9b433489
2 changed files with 5 additions and 4 deletions
|
|
@ -136,7 +136,7 @@ void adjust_cursor(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *create_filename(void)
|
char *rec_create_filename(void)
|
||||||
{
|
{
|
||||||
static char fname[32];
|
static char fname[32];
|
||||||
struct tm * tm;
|
struct tm * tm;
|
||||||
|
|
@ -216,14 +216,14 @@ bool recording_screen(void)
|
||||||
if(!mpeg_status())
|
if(!mpeg_status())
|
||||||
{
|
{
|
||||||
have_recorded = true;
|
have_recorded = true;
|
||||||
mpeg_record(create_filename());
|
mpeg_record(rec_create_filename());
|
||||||
status_set_playmode(STATUS_RECORD);
|
status_set_playmode(STATUS_RECORD);
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 1; /* Update immediately */
|
||||||
last_seconds = 0;
|
last_seconds = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mpeg_new_file(create_filename());
|
mpeg_new_file(rec_create_filename());
|
||||||
update_countdown = 1; /* Update immediately */
|
update_countdown = 1; /* Update immediately */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
@ -394,7 +394,7 @@ bool recording_screen(void)
|
||||||
|
|
||||||
if (mpeg_status() && (seconds >= dseconds))
|
if (mpeg_status() && (seconds >= dseconds))
|
||||||
{
|
{
|
||||||
mpeg_new_file(create_filename());
|
mpeg_new_file(rec_create_filename());
|
||||||
update_countdown = 1;
|
update_countdown = 1;
|
||||||
last_seconds = 0;
|
last_seconds = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,6 @@
|
||||||
#define RECORDING_H
|
#define RECORDING_H
|
||||||
|
|
||||||
bool recording_screen(void);
|
bool recording_screen(void);
|
||||||
|
char *rec_create_filename(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue