From 6d9c1201cc6c9adf866fb7769037c79decf2e5b0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 17 May 2010 19:32:16 +0000 Subject: [PATCH] Fix assertion failure on time FX of MIDI regions (#3136) git-svn-id: svn://localhost/ardour2/branches/3.0@7112 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_stretch.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/midi_stretch.cc b/libs/ardour/midi_stretch.cc index 9cd1321a12..585e0a07b2 100644 --- a/libs/ardour/midi_stretch.cc +++ b/libs/ardour/midi_stretch.cc @@ -84,7 +84,9 @@ MidiStretch::run (boost::shared_ptr r) boost::shared_ptr new_src = boost::dynamic_pointer_cast(nsrcs[0]); assert(new_src); - new_src->load_model(true, true); + Glib::Mutex::Lock sl (new_src->mutex ()); + + new_src->load_model(false, true); boost::shared_ptr new_model = new_src->model(); new_model->start_write();