do not attempt to update transport master rows if audioengine is not running
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 6 Feb 2019 20:53:17 +0000 (13:53 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 6 Feb 2019 20:54:05 +0000 (13:54 -0700)
gtk2_ardour/transport_masters_dialog.cc

index 5172c78f85162a2c6ca9901b3214ba216084fb27..7421671a01db14fef1eacc8936993f329c30ba28 100644 (file)
@@ -488,6 +488,10 @@ TransportMastersWidget::Row::update (Session* s, samplepos_t now)
        boost::shared_ptr<TimecodeTransportMaster> ttm;
        boost::shared_ptr<MIDIClock_TransportMaster> mtm;
 
+       if (!AudioEngine::instance()->running()) {
+               return;
+       }
+
        if (s) {
 
                if (tm->speed_and_position (speed, pos, most_recent, when, now)) {