Don't show DSP stats of inserts that don't collect them.
[ardour.git] / gtk2_ardour / plugin_dspload_window.cc
index 2e20f9dcc8949436f760e7cea31e464ff2f5d156..5fcc765b2454a870b0ea9b04c683e527b5b8cef7 100644 (file)
@@ -154,7 +154,7 @@ PluginDSPLoadWindow::add_processor_to_display (boost::weak_ptr<Processor> w, std
 {
        boost::shared_ptr<Processor> p = w.lock ();
        boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (p);
-       if (!pi) {
+       if (!pi || !pi->provides_stats ()) {
                return;
        }
        p->DropReferences.connect (_processor_connections, MISSING_INVALIDATOR, boost::bind (&PluginDSPLoadWindow::refill_processors, this), gui_context());