debug unconfiged plugins
authorRobin Gareus <robin@gareus.org>
Fri, 20 May 2016 11:53:59 +0000 (13:53 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 20 May 2016 15:34:37 +0000 (17:34 +0200)
libs/ardour/plugin_insert.cc

index d3204381381039fdab820bf5589cb40624e22bb3..a140e33ff53b4979d1127d9f1907e57074276a14 100644 (file)
@@ -955,6 +955,12 @@ PluginInsert::silence (framecnt_t nframes)
 void
 PluginInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool)
 {
+#ifndef NDEBUG
+       if (!_configured) {
+               error << string_compose (_("Force bypassed unconfigured plugin: %1"), name ()) << endmsg;
+               deactivate ();
+       }
+#endif
        if (_pending_active) {
                /* run as normal if we are active or moving from inactive to active */