diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-01 02:04:34 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-01 02:04:34 +0000 |
commit | e47dd1a96aef5ff5eb175e39da73154e86425480 (patch) | |
tree | 5bfa6090b4b4edc01356ba6595da6b49ca04a900 /libs/ardour/smf_source.cc | |
parent | 9efd8e2e401c690be71ce4a6289b8754bfa2fbad (diff) |
Make sure that the MidiSource constructor doesn't set the wrong _flags.
git-svn-id: svn://localhost/ardour2/branches/3.0@8996 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 8152a53834..f134ff5335 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -52,7 +52,7 @@ using namespace PBD; /** Constructor used for new internal-to-session files. File cannot exist. */ SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags) : Source(s, DataType::MIDI, path, flags) - , MidiSource(s, path) + , MidiSource(s, path, flags) , FileSource(s, DataType::MIDI, path, string(), flags) , Evoral::SMF() , _last_ev_time_beats(0.0) @@ -328,7 +328,7 @@ SMFSource::append_event_unlocked_frames (const Evoral::Event<framepos_t>& ev, fr cerr << "SMFSource: Warning: Skipping event with non-monotonic time" << endl; return; } - + BeatsFramesConverter converter(_session.tempo_map(), position); const double ev_time_beats = converter.from(ev.time()); Evoral::event_id_t event_id; |