mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Fix broken logic and possible NULL pointer dereference for Bundle XML.
This commit is contained in:
parent
26f6f80a53
commit
c4c7598adb
1 changed files with 1 additions and 0 deletions
|
|
@ -854,6 +854,7 @@ IO::get_port_counts (const XMLNode& node, int version, ChanCount& n, boost::shar
|
||||||
for (iter = node.children().begin(); iter != node.children().end(); ++iter) {
|
for (iter = node.children().begin(); iter != node.children().end(); ++iter) {
|
||||||
|
|
||||||
if ((*iter)->name() == X_("Bundle")) {
|
if ((*iter)->name() == X_("Bundle")) {
|
||||||
|
prop = (*iter)->property ("name");
|
||||||
if ((c = find_possible_bundle (prop->value())) != 0) {
|
if ((c = find_possible_bundle (prop->value())) != 0) {
|
||||||
n = ChanCount::max (n, c->nchannels());
|
n = ChanCount::max (n, c->nchannels());
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue