X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsmf_source.cc;h=f48fc301f71cd7d77de994c964814a8b91e29d06;hb=7d96960b162d25da87c388a3083775e8770bba56;hp=57be02b618fa4ba0d0c3f2d167cc770f0f6b70bb;hpb=7d9e782c3a81e4485a8cdd3f0cf637553f79c0f3;p=ardour.git diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 57be02b618..f48fc301f7 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -49,16 +49,16 @@ using namespace ARDOUR; using namespace Glib; /** Constructor used for new internal-to-session files. File cannot exist. */ -SMFSource::SMFSource (Session& s, const ustring& path, bool embedded, Source::Flag flags) +SMFSource::SMFSource (Session& s, const ustring& path, Source::Flag flags) : Source(s, DataType::MIDI, path, flags) , MidiSource(s, path) - , FileSource(s, DataType::MIDI, path, embedded, flags) + , FileSource(s, DataType::MIDI, path, flags) , Evoral::SMF() , _last_ev_time_beats(0.0) , _last_ev_time_frames(0) , _smf_last_read_end (0) { - if (init(_name, false)) { + if (init(_path, false)) { throw failed_constructor (); } @@ -82,7 +82,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist) throw failed_constructor (); } - if (init(_name, true)) { + if (init(_path, true)) { throw failed_constructor (); }