From 125e2014aafbb0362725f780470f5654b66b53ce Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 20 May 2016 13:53:59 +0200 Subject: [PATCH] debug unconfiged plugins --- libs/ardour/plugin_insert.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index d320438138..a140e33ff5 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -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 */