From 0aa0d49a4d7e4ec3e1b279e5d7e5326e012a9f6c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 27 Jan 2018 20:53:31 +0100 Subject: [PATCH] FP8/16: Don't show Channelstrip as Plugin, use well-known API only --- libs/surfaces/faderport8/faderport8.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/surfaces/faderport8/faderport8.cc b/libs/surfaces/faderport8/faderport8.cc index 9cde77a2ff..c881ec33c2 100644 --- a/libs/surfaces/faderport8/faderport8.cc +++ b/libs/surfaces/faderport8/faderport8.cc @@ -1438,12 +1438,14 @@ FaderPort8::spill_plugins () for (uint32_t i = 0; 0 != (proc = r->nth_plugin (i)); ++i) { if (!proc->display_to_user ()) { -#ifdef MIXBUS - boost::shared_ptr pi = boost::dynamic_pointer_cast (proc); - if (pi->is_channelstrip ()) // don't skip MB PRE -#endif continue; } +#ifdef MIXBUS + /* don't show channelstrip plugins, use "well known" */ + if (boost::dynamic_pointer_cast (proc)->is_channelstrip ()) { + continue; + } +#endif int n_controls = 0; set p = proc->what_can_be_automated (); for (set::iterator j = p.begin(); j != p.end(); ++j) {