mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user