[PORTCLS]

- Check if there is a silence buffer available when there is no audio mapping available
- ignore failure for allocation requirements

svn path=/trunk/; revision=47909
This commit is contained in:
Johannes Anderwald
2010-06-29 21:14:09 +00:00
parent 1ebaa1cc0b
commit e8f968cbaa
2 changed files with 8 additions and 2 deletions
@@ -259,7 +259,7 @@ CIrpQueue::GetMapping(
m_CurrentOffset = Offset = 0;
}
if (!Irp)
if (!Irp && m_SilenceBuffer && m_MaxFrameSize)
{
DPRINT("NoIrp\n");
// no irp available, use silence buffer
@@ -268,6 +268,13 @@ CIrpQueue::GetMapping(
return STATUS_SUCCESS;
}
if (!Irp)
{
// no irp buffer available
return STATUS_UNSUCCESSFUL;
}
// get stream header
StreamHeader = (PKSSTREAM_HEADER)Irp->Tail.Overlay.DriverContext[2];
@@ -824,7 +824,6 @@ CPortPinWavePci::Init(
if (!NT_SUCCESS(Status))
{
DPRINT("GetAllocatorFraming failed with %x\n", Status);
return Status;
}
DPRINT("OptionFlags %x RequirementsFlag %x PoolType %x Frames %lu FrameSize %lu FileAlignment %lu\n",