Fix crash on MIDI stretch.
authorDavid Robillard <d@drobilla.net>
Thu, 30 Apr 2009 21:57:28 +0000 (21:57 +0000)
committerDavid Robillard <d@drobilla.net>
Thu, 30 Apr 2009 21:57:28 +0000 (21:57 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5022 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_stretch.cc

index 6fd67d05d272cfdaf7083ca533fdf1b6d75199cd..ea5ab62d02517387e8c6a270b093fbc7675ac869 100644 (file)
@@ -84,6 +84,7 @@ 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);
        boost::shared_ptr<MidiModel> new_model = new_src->model();
        new_model->start_write();