fix thinko when dealing with non-MIDI tracks
This commit is contained in:
parent
c0a1aec516
commit
ff7e952942
@ -257,9 +257,10 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
|
||||
|
||||
if (run_must_resolve) {
|
||||
boost::shared_ptr<MidiTrack> mt = boost::dynamic_pointer_cast<MidiTrack> (_track);
|
||||
assert (mt);
|
||||
cerr << _track->name() << " resolving " << _tracker.on() << " notes @ " << start_sample << endl;
|
||||
resolve_tracker (mt->immediate_events(), start_sample);
|
||||
if (mt) {
|
||||
cerr << _track->name() << " resolving " << _tracker.on() << " notes @ " << start_sample << endl;
|
||||
resolve_tracker (mt->immediate_events(), start_sample);
|
||||
}
|
||||
run_must_resolve = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user