From 9efd8e2e401c690be71ce4a6289b8754bfa2fbad Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Mar 2011 02:04:23 +0000 Subject: 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 --- libs/ardour/source_factory.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/source_factory.cc') 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 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"); -- cgit v1.2.3