[SCM] calf/master: Reuse instance IDs of removed plugins.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:31 UTC 2013
The following commit has been merged in the master branch:
commit f5b94628acb50e258e91467b4c73b24b30829371
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Dec 26 23:36:57 2010 +0000
Reuse instance IDs of removed plugins.
diff --git a/src/host_session.cpp b/src/host_session.cpp
index db5862b..9969043 100644
--- a/src/host_session.cpp
+++ b/src/host_session.cpp
@@ -180,6 +180,7 @@ void host_session::remove_plugin(plugin_ctl_iface *plugin)
{
if (plugins[i] == plugin)
{
+ instances.erase(plugins[i]->instance_name);
client.del(i);
plugins.erase(plugins.begin() + i);
main_win->del_plugin(plugin);
@@ -199,6 +200,7 @@ void host_session::remove_all_plugins()
main_win->del_plugin(plugin);
delete plugin;
}
+ instances.clear();
}
bool host_session::activate_preset(int plugin_no, const std::string &preset, bool builtin)
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list