Fix logic-error in d1cf2163: hide info for optimized builds
[ardour.git] / libs / ardour / plugin_insert.cc
index 3b87b659a62d382ffe7413eb77e990e76a56de8a..351d6dae6a873c81629ef0fe905d669733f2f1aa 100644 (file)
@@ -1226,7 +1226,7 @@ PluginInsert::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sa
        }
 
        if (_pending_active) {
-#if defined MIXBUS && !defined NDEBUG
+#if defined MIXBUS && defined NDEBUG
                if (!is_channelstrip ()) {
                        _timing_stats.start ();
                }
@@ -1241,7 +1241,7 @@ PluginInsert::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sa
                        Glib::Threads::Mutex::Lock lm (control_lock(), Glib::Threads::TRY_LOCK);
                        connect_and_run (bufs, start_sample, end_sample, speed, nframes, 0, lm.locked());
                }
-#if defined MIXBUS && !defined NDEBUG
+#if defined MIXBUS && defined NDEBUG
                if (!is_channelstrip ()) {
                        _timing_stats.update ();
                }
@@ -3214,7 +3214,7 @@ PluginInsert::end_touch (uint32_t param_id)
 bool
 PluginInsert::provides_stats () const
 {
-#if defined MIXBUS && !defined NDEBUG
+#if defined MIXBUS && defined NDEBUG
        if (is_channelstrip () || !display_to_user ()) {
                return false;
        }