add a check which helps avoid crashs

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12162 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-03-30 18:54:00 +00:00
parent 45c0cd28d8
commit bbf5eb3ac6

View File

@ -1396,8 +1396,11 @@ MultiAudioNode::ProcessGroup(BParameterGroup *group, int32 index, int32 &nbParam
i++;
}
(group->ParameterAt(nbParameters - 1))->AddOutput(group->ParameterAt(nbParameters));
nbParameters++;
PRINT(("nb parameters : %d\n", nbParameters));
if (nbParameters > 0) {
(group->ParameterAt(nbParameters - 1))->AddOutput(group->ParameterAt(nbParameters));
nbParameters++;
}
} else if(MMC[i].flags & B_MULTI_MIX_ENABLE) {
PRINT(("NEW_ENABLE\n"));
if(MMC[i].string == S_MUTE)