summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-07-15 22:23:16 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-07-15 22:23:16 -0400
commit9cb678ebcc2ca0c7993bdd182c9e6ad1f8adf09a (patch)
tree9a98d4e9bceb8845a759c79007c983af4fc420c7 /libs/ardour/route.cc
parent90f5eb4a31bebeb315d4c36f20b1aefe110657d0 (diff)
finally get to the bottom of where NO_PLUGIN_STATE needs to be in order to be useful
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc24
1 files changed, 3 insertions, 21 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index d48fbeff96..dad1922488 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -2558,27 +2558,9 @@ Route::set_processor_state (const XMLNode& node)
continue;
}
- if (boost::dynamic_pointer_cast<PluginInsert>(processor)) {
- cerr << "Working on plugin processor state for " << processor->name() << endl;
-#ifndef NO_PLUGIN_STATE
- cerr << "plugin state allowed\n";
- if (processor->set_state (**niter, Stateful::current_state_version) != 0) {
- /* This processor could not be configured. Turn it into a UnknownProcessor */
- processor.reset (new UnknownProcessor (_session, **niter));
- }
-#else
- cerr << "plugin state dis-allowed\n";
- /* plugin, with NO_PLUGIN_STATE defined
- * =>::set_state() not allowed. Do not
- * display a message here - things will
- * get too verbose.
- */
-#endif
- } else {
- if (processor->set_state (**niter, Stateful::current_state_version) != 0) {
- /* This processor could not be configured. Turn it into a UnknownProcessor */
- processor.reset (new UnknownProcessor (_session, **niter));
- }
+ if (processor->set_state (**niter, Stateful::current_state_version) != 0) {
+ /* This processor could not be configured. Turn it into a UnknownProcessor */
+ processor.reset (new UnknownProcessor (_session, **niter));
}
/* we have to note the monitor send here, otherwise a new one will be created