projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c88043
)
Make sure we don't deactivate un-activated plugins or re-activate already activated...
author
Sampo Savolainen
<v2@iki.fi>
Tue, 25 Sep 2007 16:31:42 +0000
(16:31 +0000)
committer
Sampo Savolainen
<v2@iki.fi>
Tue, 25 Sep 2007 16:31:42 +0000
(16:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2480
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/ardour/ladspa_plugin.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/ladspa_plugin.h
b/libs/ardour/ardour/ladspa_plugin.h
index 63f8f600d34f1b8fe213ff31644c594897f9e247..b7cca2270d3d6c04d1bae83c54d4ddc828338ffd 100644
(file)
--- a/
libs/ardour/ardour/ladspa_plugin.h
+++ b/
libs/ardour/ardour/ladspa_plugin.h
@@
-65,12
+65,18
@@
class LadspaPlugin : public ARDOUR::Plugin
std::set<uint32_t> automatable() const;
uint32_t nth_parameter (uint32_t port, bool& ok) const;
void activate () {
+ if (was_activated)
+ return;
+
if (descriptor->activate) {
descriptor->activate (handle);
}
was_activated = true;
}
void deactivate () {
+ if (!was_activated)
+ return;
+
if (descriptor->deactivate)
descriptor->deactivate (handle);
}