mirror of
https://github.com/reactos/reactos.git
synced 2025-05-22 10:35:54 +00:00
- 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:
parent
fe4b6f1d93
commit
420e01f92d
1 changed files with 6 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue