13
0

fix jack session filename (colons are invalid)

This commit is contained in:
Robin Gareus 2013-05-16 21:14:02 +02:00
parent ad829239d6
commit 31a05b01e6

View File

@ -694,7 +694,7 @@ Session::remove_state (string snapshot_name)
void void
Session::jack_session_event (jack_session_event_t * event) Session::jack_session_event (jack_session_event_t * event)
{ {
char timebuf[128]; char timebuf[128], *tmp;
time_t n; time_t n;
struct tm local_time; struct tm local_time;
@ -702,6 +702,8 @@ Session::jack_session_event (jack_session_event_t * event)
localtime_r (&n, &local_time); localtime_r (&n, &local_time);
strftime (timebuf, sizeof(timebuf), "JS_%FT%T", &local_time); strftime (timebuf, sizeof(timebuf), "JS_%FT%T", &local_time);
while ((tmp = strchr(timebuf, ':'))) { *tmp = '.'; }
if (event->type == JackSessionSaveTemplate) if (event->type == JackSessionSaveTemplate)
{ {
if (save_template( timebuf )) { if (save_template( timebuf )) {