Fix compile.
git-svn-id: svn://localhost/ardour2/branches/3.0@6386 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e8e63d8eac
commit
df7a3cc30c
@ -221,18 +221,18 @@ PortGroup::remove_duplicates ()
|
|||||||
|
|
||||||
for (BundleList::iterator j = _bundles.begin(); j != _bundles.end(); ++j) {
|
for (BundleList::iterator j = _bundles.begin(); j != _bundles.end(); ++j) {
|
||||||
|
|
||||||
if (j->bundle->nchannels() > i->bundle->nchannels()) {
|
if ((*j)->bundle->nchannels() > (*i)->bundle->nchannels()) {
|
||||||
/* this bundle is larger */
|
/* this bundle is larger */
|
||||||
|
|
||||||
uint32_t k = 0;
|
uint32_t k = 0;
|
||||||
while (k < i->bundle->nchannels()) {
|
while (k < (*i)->bundle->nchannels()) {
|
||||||
/* see if this channel on *i has an equivalent on *j */
|
/* see if this channel on *i has an equivalent on *j */
|
||||||
uint32_t l = 0;
|
uint32_t l = 0;
|
||||||
while (l < j->bundle->nchannels() && i->bundle->channel_ports (k) != j->bundle->channel_ports (l)) {
|
while (l < (*j)->bundle->nchannels() && (*i)->bundle->channel_ports (k) != (*j)->bundle->channel_ports (l)) {
|
||||||
++l;
|
++l;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l == j->bundle->nchannels()) {
|
if (l == (*j)->bundle->nchannels()) {
|
||||||
/* it does not */
|
/* it does not */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ PortGroup::remove_duplicates ()
|
|||||||
++k;
|
++k;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (k == i->bundle->nchannels ()) {
|
if (k == (*i)->bundle->nchannels ()) {
|
||||||
/* all channels on *i are represented by the larger bundle *j, so remove *i */
|
/* all channels on *i are represented by the larger bundle *j, so remove *i */
|
||||||
remove = true;
|
remove = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user