13
0

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
This commit is contained in:
Carl Hetherington 2010-05-17 19:32:16 +00:00
parent b36d91bb2b
commit 6d9c1201cc

View File

@ -84,7 +84,9 @@ MidiStretch::run (boost::shared_ptr<Region> r)
boost::shared_ptr<MidiSource> new_src = boost::dynamic_pointer_cast<MidiSource>(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<MidiModel> new_model = new_src->model();
new_model->start_write();