projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad82923
)
fix jack session filename (colons are invalid)
author
Robin Gareus
<robin@gareus.org>
Thu, 16 May 2013 19:14:02 +0000
(21:14 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 16 May 2013 19:14:02 +0000
(21:14 +0200)
libs/ardour/session_state.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index 9a82192175ae4e64f19f493dcd1c109d68527094..49a0eed559e52e6f4c444241d688ea9ff2cb547f 100644
(file)
--- a/
libs/ardour/session_state.cc
+++ b/
libs/ardour/session_state.cc
@@
-694,7
+694,7
@@
Session::remove_state (string snapshot_name)
void
Session::jack_session_event (jack_session_event_t * event)
{
- char timebuf[128];
+ char timebuf[128]
, *tmp
;
time_t n;
struct tm local_time;
@@
-702,6
+702,8
@@
Session::jack_session_event (jack_session_event_t * event)
localtime_r (&n, &local_time);
strftime (timebuf, sizeof(timebuf), "JS_%FT%T", &local_time);
+ while ((tmp = strchr(timebuf, ':'))) { *tmp = '.'; }
+
if (event->type == JackSessionSaveTemplate)
{
if (save_template( timebuf )) {