summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 7d6f44b786..aa117f00aa 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -293,7 +293,7 @@ Session::first_stage_init (string fullpath, string snapshot_name)
}
int
-Session::second_stage_init ()
+Session::second_stage_init (bool with_midi_ui)
{
AudioFileSource::set_peak_dir (_session_dir->peak_path().to_string());
@@ -307,8 +307,10 @@ Session::second_stage_init ()
return -1;
}
- if (start_midi_thread ()) {
- return -1;
+ if (with_midi_ui) {
+ if (start_midi_thread ()) {
+ return -1;
+ }
}
setup_midi_machine_control ();