diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 7bde1e0f3a..6ee8b6585d 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -257,9 +257,10 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp if (run_must_resolve) { boost::shared_ptr mt = boost::dynamic_pointer_cast (_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; }