From ff7e9529428eee3dfec16fb17968d09c4d9ae477 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Oct 2019 23:39:38 -0600 Subject: [PATCH] fix thinko when dealing with non-MIDI tracks --- libs/ardour/disk_reader.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }