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
This commit is contained in:
parent
afb4a5e438
commit
9efd8e2e40
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user