mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
fix logic in can_do
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6582 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dda0cda30b
commit
e425351de2
1 changed files with 1 additions and 3 deletions
|
|
@ -793,8 +793,6 @@ AUPlugin::can_do (int32_t in, int32_t& out)
|
|||
int32_t plugcnt = -1;
|
||||
AUPluginInfoPtr pinfo = boost::dynamic_pointer_cast<AUPluginInfo>(get_info());
|
||||
|
||||
out = -1;
|
||||
|
||||
vector<pair<int,int> >& io_configs = pinfo->cache.io_configs;
|
||||
|
||||
if (debug_io_config) {
|
||||
|
|
@ -812,7 +810,7 @@ AUPlugin::can_do (int32_t in, int32_t& out)
|
|||
}
|
||||
|
||||
/* now allow potentially "imprecise" matches */
|
||||
|
||||
out = -1;
|
||||
for (vector<pair<int,int> >::iterator i = io_configs.begin(); i != io_configs.end(); ++i) {
|
||||
|
||||
int32_t possible_in = i->first;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue