- stop enumeration of mixer controls when there is more than one item

- fixes vmware audio driver hangs
- needs more work 
- patch by David Quintana
CORE-7488 #resolve #comment thanks for the patch

svn path=/trunk/; revision=61017
This commit is contained in:
Johannes Anderwald 2013-11-17 14:51:06 +00:00
parent fe4b6f1d93
commit 420e01f92d

View file

@ -513,8 +513,12 @@ MMixerCountMixerControls(
/* get next nodes upstream */
MMixerGetNextNodesFromNodeIndex(MixerContext, Topology, NodeIndex, bUpStream, &NodesCount, Nodes);
/* assume there is a node connected */
ASSERT(NodesCount != 0);
if (NodesCount != 1)
{
DPRINT("PinId %lu bInputMixer %lu bUpStream %lu NodeIndex %lu is not connected", PinId, bInputMixer, bUpStream, NodeIndex);
break;
}
ASSERT(NodesCount == 1);
/* use first index */