diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-01 02:04:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-01 02:04:23 +0000 |
commit | 9efd8e2e401c690be71ce4a6289b8754bfa2fbad (patch) | |
tree | 2e7b7e9ffa0c24720c80f6608bf2c3875deedb22 /libs/ardour/source_factory.cc | |
parent | afb4a5e438b68b15e67bfc5e430c15d4367e2582 (diff) |
Add assert to make sure that we succeed in making a writable SMFSource.
git-svn-id: svn://localhost/ardour2/branches/3.0@8995 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source_factory.cc')
-rw-r--r-- | libs/ardour/source_factory.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/source_factory.cc b/libs/ardour/source_factory.cc index f8b721b99a..5ac1e54226 100644 --- a/libs/ardour/source_factory.cc +++ b/libs/ardour/source_factory.cc @@ -303,6 +303,8 @@ SourceFactory::createWritable (DataType type, Session& s, const std::string& pat } else if (type == DataType::MIDI) { // XXX writable flags should belong to MidiSource too boost::shared_ptr<SMFSource> src (new SMFSource (s, path, SndFileSource::default_writable_flags)); + assert (src->writable ()); + src->load_model (true, true); #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS // boost_debug_shared_ptr_mark_interesting (src, "Source"); |